1,document.write("<script...2,eval(xmlhttp.responseText)3,你自己想

解决方案 »

  1.   

    搂住的想法好像不行,<script>...<script>...</script>...</script>矛盾up
      

  2.   

    你用两个<script language=javascript src=xx.js></script>呀
      

  3.   

    以下方法可以动态加载js文件:
    <html>
    <head>
    <script>
    function a(){
    var s=document.createElement("script")
    s.src="test.js"
    document.body.insertAdjacentElement("beforeBegin",s)
    //test() is a function of test.js
    test()
    }
    </script>
    </head>
    <body onload="a()">
    </body>
    </html>