Blogger Information
Blog 5
fans 0
comment 0
visits 11445
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
jq对象与dom对象的区别
过客的博客
Original
1131 people have browsed it
  1. js对象:使用dom方法获取的对象叫做dom对象,又叫js对象

  2. jq对象:使用jq方法获取的对象叫做jquery对象

  3. 区别:js方法和jq方法不能混着用,dom无法调用jq对象,因为,它俩不是一个对象,是两种不同的方法

  4. 联系:jq对象包含了js对象,是js对象的集合,里面存放着一大堆js对象,它俩是可以互相转换的。

     1. dom ->jquery     $()                 

        2. jquery->dom   $li[0](推荐使用)    $li.get(0) 

  1. 代码图:WDQHH2G[L4{Z~2LSC_VJOTL.png

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post