摘要: 创建 <script> 外部引入 js 文件: 需求:想要在页面中引入外部 js 文件,但是因各种原因不能直接在根页面引入 <script src="//xxx/xxxxx.js"></script>,可以封装一个方法,采用 appendChild 插入节点。 loadScript(src) { c 阅读全文
posted @ 2020-11-05 15:15 Jaye8584 阅读(1132) 评论(0) 推荐(0) 编辑