你有任何想法,为什么总是event.url未定义? 这是loadstart
和loadstop
。
在谷歌页面已于弹出窗口中显示的罚款。
var ref = window.open('http://google.com', '_blank', 'location=yes');
ref.addEventListener('loadstart', function() { alert('start: ' + event.url); });
ref.addEventListener('loadstop', function() { alert('stop: ' + event.url); });
ref.addEventListener('exit', function() { alert(event.type); });