随笔分类 - 

斐波那契 序列
摘要://1 1 2 3 5 8 13 21 .... //递归 function fib(n){ if(n==1||n==2){ return 1; } return fbnq(n-1)+fbnq(n-2);}fbnq(10);//55 //非递归function fb(n){ var a,b,res; 阅读全文

posted @ 2017-04-26 15:49 _chuck 阅读(207) 评论(0) 推荐(0)

前端奇葩题!!!!!
摘要:(function(){ (function(){ console.log(123); }()); setTimeout(arguments.call,1000);}());//123for(var i=0;i<3;i++){ setTimeout(function(){ console.log(i 阅读全文

posted @ 2017-04-26 15:03 _chuck 阅读(260) 评论(0) 推荐(0)

导航