摘要:
//斐波那契数列:(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+ 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>抽奖游戏</title> <style type="text/css"> #box{ margin: 100px auto 0; width: 366px; hei 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>随机翻转</title> <style type="text/css"> body{ background-color: #ccc; } ul{ margin: 2 阅读全文