jquery.each检查hasOwnProperty吗?

时间:2014-09-01 09:13:49

标签: javascript jquery hasownproperty

我浏览了jquery来源,但我仍然不确定。 jQuery.each是否检查hasOwnProperty还是不检查?

如果我用for..in循环一个对象,我需要检查。我总是认为我不需要检查何时使用jquery ..

1 个答案:

答案 0 :(得分:4)

不,jQuery.each不检查hasOwnProperty,你可以在这个问题上看到:http://bugs.jquery.com/ticket/5499