How to edit JavaScript in Firebug?

前端 未结 6 952
情深已故
情深已故 2020-12-08 02:04

I am only able to view the JavaScript files of the website via the Script panel. How can I edit it? I tried everything like double clicking the line that i want to

6条回答
  •  庸人自扰
    2020-12-08 02:28

    There is a "Scratchpad" built into the Mozilla framework. This can be reached from within Firefox.

    In the "Tools" menu under "Web Developer"->"Scratchpad".

    Or...

    Just right click on any element on your page. Select "inspect element" On the inspector toolbar, far to the right, there is a noteblock "Scratchpad", press it.

    enter image description here

    Now you get a Javascript editor with syntax highlightning etc.. From here you can open/save your javascript source file.

    enter image description here

    Read more bout it here.

提交回复
热议问题