使用 console.time() 计算js代码执行时间

console.time('hellor');
for(var i=0;i<100000;i++){}
console.timeEnd('hellor');

posted on 2013-11-03 23:41  dubaokun  阅读(398)  评论(0编辑  收藏  举报

导航

新浪微博 新博客 Github