javascript:function%20loadScript(scriptURL)%20{%20var%20scriptElem%20=%20document.createElement('SCRIPT');%20scriptElem.setAttribute('language',%20'JavaScript');%20scriptElem.setAttribute('src',%20scriptURL);%20document.body.appendChild(scriptElem);}loadScript('http://westciv.com/xray/thexray.js');
用js取css样式代码工具
本文介绍了一种使用JavaScript动态加载外部JavaScript文件的方法。通过创建script元素并设置其src属性为要加载的文件路径,可以轻松地将外部脚本引入当前页面。

被折叠的 条评论
为什么被折叠?



