function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function'){
window.onload = func;
}else {
oldonload();
func();
}
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function'){
window.onload = func;
}else {
oldonload();
func();
}
}
本文标题:addLoadEvent函数
本文链接:https://www.haomeiwen.com/subject/wiwddttx.html
网友评论