原文链接:https://blog.csdn.net/qq_42249896/article/details/90769809
方式一:
document.write("<script src='xxx.js'></script>");
方式二:
var ele= document.createElement("script");
ele.setAttribute("type", "text/javascript");
ele.setAttribute("src", "xxx.js");
document.body.appendChild(ele);
评论区