Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Chrome 开发者工具中,在 JavaScript 文件中添加两个断点并执行整个代码后,有没有办法测量它们之间经过的时间?
您可以使用控制台对象的time 和 timeEnd 方法来记录代码中两点之间的经过时间。