动态加载js的几种方法
1.直接[removed] [removed] [removed]([removed]<\/script>); [removed] 2.动态改变已有script的src属性 [removed][removed] [removed] s1.src=test.js [removed] 3.动态创建script元素 [removed] var s2 = document.createElement(script); s2.src=test.js documen
1.直接[removed] [removed] [removed]([removed]<\/script>); [removed] 2.动态改变已有script的src属性 [removed][removed] [removed] s1.src=test.js [removed] 3.动态创建script元素 [removed] var s2 = document.createElement(script); s2.src=test.js documen