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.
我需要捕获每个 http 对象的加载时间,例如 img src="" 和 script src=""
如果不可能循环 http 元素,我可以构建一个数组,然后循环
我知道我可以使用 firebug,但我需要在 js 中使用它
谢谢
就像是:
<script>var startTimeForXX = +new Date;</script> <img src="" onload="calculateEndTime(stateTimeForXX, +new Date);" />
应该这样做。