16 如何檢查變量是否爲jQuery對象或純DOM元素?如何檢查一個變量是一個jQuery對象還是純DOM元素? 來源 2010-08-06 Dane O' Connor +3 參見http://stackoverflow.com/questions/1853223/check-if-object-is-a- jQuery的對象 – 2010-08-06 17:30:38
39 jquery對象有一個jquery屬性。 jQuery對象是一個instanceof jQuery(instanceof on MDN) DOM元素具有nodeType屬性 來源 2010-08-06 17:20:23
參見http://stackoverflow.com/questions/1853223/check-if-object-is-a- jQuery的對象 – 2010-08-06 17:30:38