//网页载入后调用 function addLoadEvent(func){ var oldοnlοad=window.onload; if(typeof window.onload!='function'){ window.onload=func; }else{ window.onload=function(){ oldonload(); func(); } } }
//网页载入后调用 function addLoadEvent(func){ var oldοnlοad=window.onload; if(typeof window.onload!='function'){ window.onload=func; }else{ window.onload=function(){ oldonload(); func(); } } }
转载于:https://www.cnblogs.com/nb08611033/p/8464589.html