美文网首页
2019-12-02 react引入js外部文件

2019-12-02 react引入js外部文件

作者: SherrinfordL | 来源:发表于2019-12-02 16:53 被阅读0次

目前比较实用的方法,仍希望更简便的引入寻找其他方法

var script = document.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.src = 'http://127.0.0.1:8080/plugins/jquery.min.js';
document.head.appendChild(script);    

相关文章

网友评论

      本文标题:2019-12-02 react引入js外部文件

      本文链接:https://www.haomeiwen.com/subject/yjefgctx.html