摘要: jQuery被开发者如此的青睐和它强大的选择器有很大关系,比起笨重的document.getElementById、document.getElementByName… ,查找元素很方便,其实W3C中提供了querySelector和querySelectorAll查询接口已经实现了类似功能。定义其实这两个方法看名字就能明白什么意思,不过还是引用一下W3C的解释querySelector:return the first matching Element node within the node’s subtrees. If there is no such node, the method 阅读全文
posted @ 2013-10-11 21:43 谦行 阅读(26705) 评论(2) 推荐(6)