2016年7月13日
摘要: /*类型检测*/ var isType = function (obj, type) { return Object.prototype.toString.call(obj) === "[object " + type + "]"; } //console.log(isType([],"Array")); //console.log(isT... 阅读全文
posted @ 2016-07-13 10:36 流浪小白鼠 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1 /*定时器*/ 2 var requestAnimationFrame = 3 window.requestAnimationFrame || 4 window.mozRequestAnimationFrame || 5 window.webkitRequestAnimationFrame || 6 window... 阅读全文
posted @ 2016-07-13 10:35 流浪小白鼠 阅读(124) 评论(0) 推荐(0) 编辑