摘要: var animation = function(obj) { this.obj = obj; this.frames = 0; this.timmer = undefined; this.running = false; this.ms = [];} animation.prototype = { 阅读全文
posted @ 2017-07-03 16:34 florence1995 阅读(1047) 评论(0) 推荐(0)
摘要: Math.ceil(); //向上取整。 Math.floor(); //向下取整。 Math.round(); //四舍五入。 Math.random(); //0.0 ~ 1.0 之间的一个伪随机数。【包含0不包含1】 //比如0.8647578968666494 Math.ceil(Math. 阅读全文
posted @ 2017-07-03 16:25 florence1995 阅读(405) 评论(0) 推荐(0)