更新时间:2023-11-03 20:14:28
您可以在支持它的所有浏览器上捕获事件:
You could capture event on all browsers which support it:
document.addEventListener(
'load',
function(event){
var elm = event.target;
if( elm.id === 'some_elementid'){ // or any other filtering condition
// do some stuff
}
},
true // Capture event
);