View a function source code in firefox inspector
问题 In chrome, when you type a function in the console, the source code for that function is outputted. For example > $.rails.confirm function (message) { return confirm(message); } But in firefox inspector's console, it just outputs [object Function] How do I see a function's source code in Firefox inspector, like in chrome? 回答1: Just write in console function.toString(). Example: alert.toString() will output: "function alert() { [native code] }" 来源: https://stackoverflow.com/questions/23129449