摘要: 看了网上的一些资料,发现大家都写得太复杂,让新手难以入门。于是写了这个极简版的Underscore源码阅读。 源码: https://github.com/hanzichi/underscore-analysis/blob/master/underscore-1.8.3.js/src/undersc 阅读全文
posted @ 2019-04-22 16:34 walkingp 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 测试性能的时候,三种方法: 1、使用new Date() 返回整数值ms 2、使用console.time和console.timeEnd 返回:1: 0.72998046875ms 3、使用performance 注意IE10及之后的版本才支持 返回:3.429999982472509 阅读全文
posted @ 2019-04-22 10:59 walkingp 阅读(526) 评论(0) 推荐(0) 编辑