js向window.onload中追加函数
时间:2010-08-18 来源:红旗飘飘
function start(){ alert("追加的函数"); } if(window.attachEvent) window.attachEvent("onload",function() {start();}); else window.addEventListener("load",function() {start();},true);
相关阅读 更多 +
时间:2010-08-18 来源:红旗飘飘
function start(){ alert("追加的函数"); } if(window.attachEvent) window.attachEvent("onload",function() {start();}); else window.addEventListener("load",function() {start();},true);