动态加载外部javascript文件
摘要:只是做个记录,以后不要自己满街找代码。。。(function (clover) { clover.loadScript = function loadScript(url, callback) { var heads = document.getElementsByTagName('head'); if (heads.length == 0) { alert("page must have one head element"); } var head = heads[0]; var script = document.createElement('s
阅读全文
posted @ 2011-07-27 22:39
浙公网安备 33010602011771号