動態加載外部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 聽說讀寫 閱讀(514) 評論(2) 推薦(0)
浙公網安備 33010602011771號