1.
console.time('global')
// 要執行的代碼放中間
console.timeEnd('global')
2.
// 這里腳本的時間范圍有限制,0~999ms
console.log( new Date().getMilliseconds() )
// 要執行的代碼放中間
console.log( new Date().getMilliseconds() )
1.
console.time('global')
// 要執行的代碼放中間
console.timeEnd('global')
2.
// 這里腳本的時間范圍有限制,0~999ms
console.log( new Date().getMilliseconds() )
// 要執行的代碼放中間
console.log( new Date().getMilliseconds() )
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。