Need to find actual location of line/char in Internet Explorer Script errors?

前端 未结 4 1661
难免孤独
难免孤独 2021-02-19 16:41

I\'m receiving a script error in IE:

Line: 59 Char: 71 Error: Expected identifier, string, or number Code: 0

Line 59, character 71 don\'t seem to actually corres

4条回答
  •  耶瑟儿~
    2021-02-19 16:57

    Browsers differ in their determination of the line number and thus do not reliably report the correct line number that an error occurred at in relation to the source code. Internet Explorer, for instance, reports the line number in relation to the browser's own internal rendering of the document source, which may or may not match the source file. Firefox reports the location of the error more reliably, reporting the script file that an error occurred in where applicable.

    Line numbers can help you pinpoint the general place in the script where things went awry. You can copy the document source and paste it into a text editor that provides line numbering, such as Textpad. Alternatively, you can set the default HTML Editor on the Programs tab of the Internet Options dialog

提交回复
热议问题