ROMANIA_engineerfutzlarson提出了一个问题:Find JavaScript function definition in Chrome,或许与您遇到的问题类似。
回答者Colinplesiv给出了该问题的处理方式:
Lets say we're looking for function named foo:
(open Chrome dev-tools),
-
Windows: ctrl + shift + F, or macOS: cmd + optn + F. This opens a window for searching across all scripts.
-
check "Regular expression" checkbox,
-
search for foo\s*=\s*function (searches for foo = function with any number of spaces between those three tokens),
-
press on a returned result.
-
Another variant for function definition is function\s*foo\s*\( for function foo( with any number of spaces between those three tokens.
阅读(364) | 评论(0) | 转发(0) |