日期:2014-05-18 浏览次数:20386 次
function loadJs(path){ var element = document.createElement('script'); element.setAttribute('type', 'text/javascript'); element.setAttribute('src', path); element.setAttribute('defer', 'defer');//看需求 document.getElementsByTagName("head")[0].appendChild(element); }
------解决方案--------------------
<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server">