Recently developed features in a new web project. The management interface of this project has a feature. The framework is fixed and will not be refreshed. Each time you click on a new page, you only refresh one div. The div is not a set of iframes, which leads to a problem. The browser cannot debug the asynchronous loading of the js files contained in the page. Simply put, you cannot see the js file contained in the asynchronous loading page in the debugging tool.
A solution was found online, which was to add a line of code to the top of the js file that needs to be debugged:
//@ sourceURL=msgprompt.js
Note that there must be spaces between the @ symbol and the sourceURL. Effects under Chrome:
It's OK under FireFox. This method is pretty good.