上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 198 下一页
摘要: Document callback方法 阅读全文
posted @ 2019-12-13 10:16 Shimily 阅读(186) 评论(0) 推荐(0)
摘要: 测试正确: Math.ceil(); //向上取整。 Math.floor(); //向下取整。 Math.round(); //四舍五入。 Math.random(); //0.0 ~ 1.0 之间的一个伪随机数。【包含0不包含1】 //比如0.8647578968666494 Math.ceil 阅读全文
posted @ 2019-12-12 15:13 Shimily 阅读(4797) 评论(0) 推荐(0)
摘要: 思路如下: 1. `Math.random() `取0-1之间的随机小数(float); 2. 然后再乘以 n-m 之间的数字个数`(max-min+1)`; 3. 然后两者相乘向下取整 `Math.floor(Math.random()*(max-min+1))`; 4. 最后再加上最小值即可:` 阅读全文
posted @ 2019-12-12 15:03 Shimily 阅读(171) 评论(0) 推荐(0)
摘要: 原地址:http://www.htmleaf.com/html5/html5-canvas/201608133862.html 链接 阅读全文
posted @ 2019-12-11 17:46 Shimily 阅读(202) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 198 下一页