jjzjj

theScript

全部标签

javascript - 通过 onclick 事件移除 <head> 标签中的特定 &lt;script&gt; 标签

functioninclude(filename,status){if(status=='on'){varhead=document.getElementsByTagName('head')[0];script=document.createElement('script');script.src=filename;script.type="text/javascript";head.appendChild(script);}else{//Thecodethatwipesthescripttagabove}}我想通过onclick事件删除标签中的特定标签。当我点击“CLOSE”按钮时,