Using Google Chrome to debug and edit javascript embedded in HTML page

前端 未结 5 1380
终归单人心
终归单人心 2021-01-31 07:00

Chrome developer tools allows you to edit javascript in the browser if the javascript is in a .js file. However, it does not seem to allow me to edit javascript that is embedded

5条回答
  •  眼角桃花
    2021-01-31 07:45

    Go to the Elements tab, find your script, right click on the part you need and choose "Edit as HTML".

    If Edit as HTML doesn't appear, double click the node and it should become highlighted and editable.

提交回复
热议问题