摘要: 1.balls数组中的元素个数有增无减,考虑将滚到画面外的小球排出balls数组;function updateBalls(){ ...... var cut = 0; for( var i = 0 ; i 0 && balls[i].x-RADIUScut)//前cut个小球在屏... 阅读全文
posted @ 2015-02-26 20:13 蒙面 阅读(510) 评论(0) 推荐(0)
摘要: 今天调试一个倒计时javascript脚本,多次debug依然不能显示正确的时间,经过google才得知月份参数不对,date中的月份从0开始:MethodDescriptiongetDate()Get the day as a number (1-31)getDay()Get the weekda... 阅读全文
posted @ 2015-02-26 13:20 蒙面 阅读(753) 评论(0) 推荐(0)