原生js动态添加script标签

var scriptElement = document.createElement('script');
document.body.appendChild(scriptElement);
scriptElement.src = "https://static.mlinks.cc/scripts/dist/mlink.min.js"

 

posted @ 2018-07-26 15:29  靥放  阅读(1606)  评论(0编辑  收藏  举报