可能是真的对JScript的引入标识不兼容也说不定

解决方案 »

  1.   

    路径没有问题啊,如果把扩展名从aspx改为html,脚本就可以运行了,有什么办法可以解决这个问题呢?
      

  2.   

    如果是语法错误,那可能是ASPX中用<script language=C#/VB>而引入的文件是 <script language=javascript>。但同一个页面只能为一种语言。
    不知道是不是这里有冲突?我也是猜测的!
      

  3.   

    那是肯定不行的。ascx运行时输出的html内容在<body></body>里面
      

  4.   

    1. does your js file contain Chinese? try to change your web.config<configuration>
       <system.web>
    <globalization requestEncoding="gb2312" responseEncoding="gb2312" fileEncoding="gb2312"/>
       </system.web>
    </configuration>
    2. if you need to run script inline, consider to move them into window.onload, since the js file is downloaded separately, when you run some inline script, the script code in the js file might not be loaded yet
      

  5.   

    谢谢saucer,问题已经解决,果然是字符集编码的问题。