Find JavaScript function definition in Chrome

前端 未结 11 2310
难免孤独
难免孤独 2020-11-28 17:16

Chrome\'s Developer Tools rock, but one thing they don\'t seem to have (that I could find) is a way to find a JavaScript function\'s definition. This would be super handy fo

11条回答
  •  误落风尘
    2020-11-28 18:03

    2016 Update: in Chrome Version 51.0.2704.103

    There is a Go to member shortcut (listed in settings > shortcut > Text Editor). Open the file containing your function (in the sources panel of the DevTools) and press:

    ctrl + shift + O

    or in OS X:

    + shift + O

    This enables to list and reach members of the current file.

提交回复
热议问题