前端小菜鸡拾夕 —— Script 动态加载和移除
前端小菜鸡重拾之路script 标签的插入和删除插入原生 JSvar script = document.createElement("script");script.setAttribute("type", "text/javascript");// or script.type = "text/javascript"script.setAttribute("src", "...");// or script.src = "..."var head = document.ge.
原创
2020-06-18 21:08:42 ·
741 阅读 ·
0 评论