How to get nodeType using jquery

前端 未结 5 1428
借酒劲吻你
借酒劲吻你 2021-01-13 02:52

I want to get nodeType and then compare it to where it is text node or element node.





        
5条回答
  •  Happy的楠姐
    2021-01-13 03:50

    
    

    or

    
    

    Because a jquery collection is a "wrapped set" of DOM elements.

提交回复
热议问题