How to do JavaScript object introspection?
问题 What to do when after all probing, a reportedly valid object return 'undefined' for any attribute probed? I use jQuery, $('selector').mouseover(function() { }); Everything returns 'undefined' for $(this) inside the function scope. The selector is a 'area' for a map tag and I'm looking for its parent attributes. 回答1: Your question is a bit vague, so maybe you can provide more details? As for finding out about an object and the values of its properties, there are many ways to do it, including