使用node.js,我们可以使用以下方法侦听被拒绝的承诺: console.log('Unhandledapplication specific logging, throwing an error, or other logic here这是在前端收听unhandledRejections的最佳方式吗
目前,我在window.performance.timing函数中读取window.addEventListener('load', function () {...})中的值。然而,在safari中,仍然有像loadEventEnd这样的值被设置为0。
如何以基于事件的最佳方式延迟对window.performance.timing的调用,直到定义了此值和其他值?