JQuery methods and DOM properties

后端 未结 4 852
梦如初夏
梦如初夏 2021-01-31 12:06

I am confused as to when I can use the DOM properties and when I could use the Jquery methods on a Jquery object. Say, I use a selector

var $elemSel = $(\'#myDi         


        
4条回答
  •  终归单人心
    2021-01-31 12:30

    There is also a shortcut for get(index) function:

    $(selector)[0].nodeName
    

    Soruce: http://docs.jquery.com/Core/get#index

提交回复
热议问题