摘要: //斐波那契数列:(i最好不要超过40,要不然浏览器也可能hold不住) function f(i){return i<3?1:f(i-1)+f(i-2);} //求n! 即,1×2×3×4×5×······×n function n(i){return i<2?1:i*n(i-1);} //求1+ 阅读全文
posted @ 2016-04-26 21:22 待繁华落尽 阅读(120) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>抽奖游戏</title> <style type="text/css"> #box{ margin: 100px auto 0; width: 366px; hei 阅读全文
posted @ 2016-04-26 21:20 待繁华落尽 阅读(195) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>随机翻转</title> <style type="text/css"> body{ background-color: #ccc; } ul{ margin: 2 阅读全文
posted @ 2016-04-26 19:54 待繁华落尽 阅读(200) 评论(0) 推荐(0) 编辑