Find js function with firebug

前端 未结 4 943
盖世英雄少女心
盖世英雄少女心 2020-12-24 08:45

I have the following button:


How can i fi

相关标签:
4条回答
  • 2020-12-24 09:08

    Type the following into the Firebug Console, then click the function() in the output window

    var s = ValidateLogin.prototype.constructor;
    console.log(s); // will output the actual function definition 
    

    I have included some screenshots to help.

    enter image description here

    enter image description here

    0 讨论(0)
  • 2020-12-24 09:12

    There is a search field on the top right of Firebug. When you are on the Script panel and focus the search field, you'll get a small dialog which a check box "Multiple Files" (or something similar - I don't have the English version). Check it and copy the name of the Function you are looking for into it.

    0 讨论(0)
  • 2020-12-24 09:17

    go to HTML label. Here you can view also the contents of the Javascript file included in the page.

    I hope it's helpful.

    0 讨论(0)
  • 2020-12-24 09:28

    To get the function definition only this would be a shortcut in the firebug console:

    console.log(ValidateLogin.toString());
    

    The defintion of the function will be printed to the console directly.

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