标签:rip ext get ack others name article doc cal
function loadScript(url, callback){ var script = document.createElement ("script") script.type = "text/javascript"; if (script.readyState){ //IE script.onreadystatechange = function(){ if (script.readyState == "loaded" || script.readyState == "complete"){ script.onreadystatechange = null; callback(); } }; } else { //Others script.onload = function(){ callback(); }; } script.src = url; document.getElementsByTagName_r("head")[0].appendChild(script); }
loadScript("file1.js", function(){ alert("File is loaded!"); });
标签:rip ext get ack others name article doc cal
原文地址:http://www.cnblogs.com/gccbuaa/p/6746157.html