[英]contents of javascript anonymous functions
With the Internet Explorer developer tools, I can inspect the value of an element's click method. 使用Internet Explorer开发人员工具,我可以检查元素的click方法的值。 IE reports attached to it is an object (shows {...}).
附加到它的IE报告是一个对象(显示{...})。 However, I cannot see into the object (anonymous function).
但是,我看不到对象(匿名函数)。 Is there a way to see the contents of this?
有没有办法查看其中的内容?
Can't you use Firefox(with firebug) or Chrome? 您不能使用Firefox(带有萤火虫)或Chrome吗? If not, I'd try seeing if using
the_function.toString()
works. 如果没有,我将尝试查看使用
the_function.toString()
有效。
Have you tried the_function.toSource()
or any other "var_dump for JavaScript" equivalent? 您是否尝试过
the_function.toSource()
或其他任何等效的“ JavaScript var_dump”?
http://snippets.dzone.com/posts/show/759 http://snippets.dzone.com/posts/show/759
http://phpjs.org/functions/var_dump:604 http://phpjs.org/functions/var_dump:604
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.