问题
With firebug I found that clicking on the link calls javascript function
<a href="#" onclick="viewHide(this);return false;">
But I couldn't find it's implementation in page source.
Is it possible to get it?
The site is in hebrew, but I don't think it's problem :link text to trigger for this function click on any comments title that follow the article.
removed dead ImageShack link
回答1:
Just write in console:
viewHide.toString()
You will get a source code of function as a text.
回答2:
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.
回答3:
Just write in console:
console.log(viewHide)
Then double-click the output will jump to the source file of the function definition.
来源:https://stackoverflow.com/questions/1368137/how-to-get-javascript-functions-source-code-from-specific-site-using-firebug