How to get Javascript function's source code from specific site using firebug?

前端 未结 3 779
执笔经年
执笔经年 2020-12-25 12:28

With firebug I found that clicking on the link calls javascript function


But

相关标签:
3条回答
  • 2020-12-25 12:38

    Just write in console:

    console.log(viewHide)
    

    Then double-click the output will jump to the source file of the function definition.

    0 讨论(0)
  • 2020-12-25 12:40

    You can also put ViewHide under the Name column of the watch panel on the Script tab. When you press enter or click out after putting in the name, it should evaluate it and put the code in the Value column.

    0 讨论(0)
  • 2020-12-25 12:59

    Just write in console:

    viewHide.toString()
    

    You will get a source code of function as a text.

    0 讨论(0)
提交回复
热议问题