首页 > Web开发 > 详细

querySelectorAll 和 jQuery选择器

时间:2015-04-29 23:11:11      阅读:421      评论:0      收藏:0      [点我收藏+]

参考

http://xahlee.info/js/jquery_diff_querySelectorAll.html

http://stackoverflow.com/questions/11503534/jquery-vs-document-queryselectorall

最明显的区别就是 $() 返回的结果可以使用 map filter children parent 等方法

而querySelectAll返回的是一个NodeList集合 很像数组 同样可以使用[index]来取值  但是只有length方法

querySelectorAll 和 jQuery选择器

原文:http://www.cnblogs.com/cart55free99/p/4467613.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!