动态加载js
动态加载js
varelement=document.createElement('script');
element.id="script1";
element.setAttribute("type","text/javascript");
element.setAttribute("charset","utf-8");
element.setAttribute("src","a.js");
element.setAttribute('src',"http://abc.def.com/abc");
document.body.appendChild(element);
相关推荐
张荣珍 2020-11-12
goawalk 2020-10-29
ahailanjianj 2020-10-10
clong 2020-08-23
hell0kitty 2020-07-28
leodengzx 2020-07-04
JayFighting 2020-06-28
89510194 2020-06-27
小灯光环 2020-06-11
yunsaiqing 2020-06-06
弱思 2020-06-04
mysteryrat 2020-06-02
liqinglin0 2020-06-01
jvm 2020-05-30
curiousL 2020-05-27