How can I edit javascript in my browser like I can use Firebug to edit CSS/HTML?

前端 未结 5 433
囚心锁ツ
囚心锁ツ 2020-12-04 09:53

Within JSP files, I have some pretty complicated Javascript. On a production machine, we\'re seeing a very weird bug that we have not been able to understand. We have neve

5条回答
  •  悲哀的现实
    2020-12-04 10:17

    I know that you can modify a javascript file when using Google Chrome.

    1. Open up Chrome Inspector, go to the "Scripts" tab.
    2. Press the drop-down menu and select the javascript file that you want to edit.
    3. Double click in the text field, type in what ever you want and delete whatever you want.
    4. Then all you have to do is press Ctrl + S to save the file.

    Warning: If you refresh the page, all changes will go back to original file. I recommend to copy/paste the code somewhere else if you want to use it again.

    Hope this helps!

提交回复
热议问题