猿问

Invalid Character Error

I get the following error message:<br><br>Line: 2<br>Char: 1<br>Error: Invalid character<br>Code: 0<br><br>I remember running the page in question without any error messages in the past. Moreover, the line in question contains no JavaScripting.<br><br>What is the cause of this error and how can it be avoided?<br><br>This error seems to be quite unspecific. Now I receive it when I place a page in a frameset. When the page is run directly, not from within the frameset, no error message appears. Any ideas why this happens? The page in question is different from the above example.<br><br>P.S. The problem seemed to be again missing javascript source in the newly generated html source. It's interesting that both the standalone and the frameset versions reported the error when I uploaded them to the above URL. Only the frameset version gives the error when the files are tested from my drive.<br>

凤凰求蛊
浏览 805回答 2
2回答

慕哥9229398

行1 字符1 错误:无效字符 ------------------------- 怀疑是JS文件的编码有问题,或者你直接打开你的JS,看是不是有效的JS格式,如果JS是由程序动态生成的,这种问题比较普遍,有可能程序抛出了异常而并没有返回正确的JS代码

跃然一笑

肯有英文写出来真是不简单~~我虽然看的懂。。就是写不出来 哈哈! 至于可能的情况 2楼说了~我也想不出其他的原因了
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答