Why are all JavaScript Console Logs and Errors showing Line 1 (Developer Tools)
问题 I'm working on a Javascript project and using the Chrome F12 Developer Tools for debugging. For some reason all the console.log outputs and error messages claim that they are occuring on line 1 of my js file. ...i.e., in the Console to the right of each line it says myFile.js:1 even though there is no code on line 1, and the code is obviously running on a different line. What could be the cause of this? 回答1: Apparently other people weren't able to reproduce the problem (@Bergi), so I can only