如果使用document.body.clientWidth和document.body.clientHeight的话html和body都得设成高100%,如果只设body100%的话得 使用document.documentElement.clientWidth和document.documentElement.clientHeight
2016-02-22
视频中endTime-curTime 应该为 curTime-endTime ,计算分钟时应该加个括号:var minutes = parseInt((curShowTimeSeconds - hours*3600 )/ 60);
2016-02-20
回复 IMPer:
我使用下述代码解决小球抖动问题:
if (Math.abs(balls[i].vy) < balls[i].g && balls[i].y >= (WINDOW_HEIGHT - RADIUS - balls[i].g))
balls[i].vy = 0;
else
balls[i].vy += balls[i].g;
我使用下述代码解决小球抖动问题:
if (Math.abs(balls[i].vy) < balls[i].g && balls[i].y >= (WINDOW_HEIGHT - RADIUS - balls[i].g))
balls[i].vy = 0;
else
balls[i].vy += balls[i].g;
2016-02-20
最新回答 / SemineLee
我的是可以的...检查一下? var tangram = [ //二维数组,顶点坐标,颜色 {p:[{x:0,y:0},{x:800,y:0},{x:400,y:400}],color:"#caff67"}, {p:[{x:0,y:0},{x:400,y:400},{x:0,y:800}],color:"#67becf"}, {p:[{x:800,y:0},{x:800,y:400},{x:600,y:600},...
2016-02-07