摘要: 要测试javascript代码执行效率,当然有很多方法,今天听了清笃的一个技术分享,发现之前一直忽略了一个最简单快速的方法:console.time(name)Creates a new timer under the given name. Call console.timeEnd(name) with the same name to stop the timer and print the time elapsed..console.timeEnd(name)Stops a timer created by a call to console.time(name) and wr... 阅读全文
posted @ 2012-06-27 13:32 lengyuhong 阅读(784) 评论(1) 推荐(0) 编辑