jQuery1.2后已删除XPath选择器支持

来源:互联网 发布:双色球蓝球算法必中6红 编辑:程序博客网 时间:2024/06/03 22:40

在学习JQuery时发现XPath选择器不能用,在网上查了一下资料,发现自从jQuery1.2版本以后就不支持XPath了,如果想使用需要使用一个jQuery插件,插件大家可以在一下链接找到。 

 

1.jQuery1.2更新日志
http://docs.jquery.com/Release:jQuery_1.2#XPath_Compatibility_Plugin

"Since XPath selectors were removed from jQuery in 1.2, a new XPath Selector Plugin has been introduced. You can use this plugin to give yourself the CSS/XPath hybrid selectors that have existed in jQuery since its creation."

2.jQuery XPath兼容插件jquery.xpath.js
http://dev.jquery.com/view/trunk/plugins/xpath/jquery.xpath.js

3.XPath语法
http://www.w3school.com.cn/xpath/xpath_syntax.asp

4.Google排名中的10个最著名的JavaScript库
http://developers.solidot.org/article.pl?sid=09/11/14/0151200

原创粉丝点击