How do I check if a variable is a jQuery object or plain DOM element?
How do I che开发者_运维技巧ck if a variable is a jQuery object or plain DOM element?
- A jquery object has a
jqueryproperty. - A jquery object is an
instanceof jQuery(instanceofon MDN) - A DOM element has a
nodeTypeproperty
加载中,请稍侯......
精彩评论