老师很辛苦
判断在不支持canvas的浏览器,应该用
if(canvas.getContext){} //不支持的浏览器为undefined
而不是
if(canvas.getContext('2d')){}//引起错误 undefiend is not a function
判断在不支持canvas的浏览器,应该用
if(canvas.getContext){} //不支持的浏览器为undefined
而不是
if(canvas.getContext('2d')){}//引起错误 undefiend is not a function
2015-04-21
如果将时间设置为const endTime = new Date(2014,6,11,18,47,52); 本地置零(因为倒数已经完毕)
。。。但是设置自己的时间const endTime = new Date(2015,4,21,18,00,00);(现在时刻2015/4/21 10:07)却没有显示。
。。。但是设置自己的时间const endTime = new Date(2015,4,21,18,00,00);(现在时刻2015/4/21 10:07)却没有显示。
2015-04-21
老师,确实很酷很牛,涉及运动学,加速度,碰撞检测、摩擦系统,让我这种低学历者特别是理科不好的人悲从中来,哭死
2015-04-14