var scriptElement = document.createElement(‘script‘); document.body.appendChild(scriptElement); scriptElement.src = "https://static.mlinks.cc/scripts/dist/mlink.min.js"
原生js动态添加script标签
原文:https://www.cnblogs.com/jongsuk0214/p/9372053.html