jQuery1.2后已删除XPath选择器支持
2010-01-07 12:20
344 查看
jQuery的DOM选择器或者说查找技术绝对是行业最强大的,它支持CSS1~CSS3选择器,而且在1.2之前版本还支持XPath选择器。根据jQuery1.2更新日志得知,要想在jQuery1.2之后继续使用XPath,可以使用一个独立的兼容插件。关于这点变动,不经常使用或者不习惯使用XPath的网友可能还没有发现,因为目前网上提供的有关jQuery+XPath开发教程几乎都未提供版本变化影响信息,这很容易让人迷惑,所以我在此作简要说明。另外,根据我测试还发现,那个所谓的XPath兼容插件,似乎在jQuery1.3后不起作用,但在1.2~1.3之间的版本中继续有效。
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
相关信息:
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
相关文章推荐
- jQuery1.2后已删除XPath选择器支持
- jQuery1.2选择器(2)
- 《JQuery 能干点啥~》第8讲 XPath选择器
- jquery的XPath选择器
- jQuery选择器 简单实现<input>标签 增加 删除
- setTimeout内不支持jquery的选择器的解决方案
- JQuery支持的选择器
- jquery基础教程七 选择器(selectors 的xpath语法应用)
- JQuery1.2对IE6的支持存在兼容性问题~
- jQuery1.2选择器
- jquery学习之1.2-层级选择器
- jQuery选择器进行选择添加和删除样式
- setTimeout内不支持jquery的选择器的解决方案
- jquery 动态添加一行数据,支持动态删除
- [jQuery教程]jquery基础教程七选择器(selectors的xpath语法应用)
- jquery 选择器(selector)使用xpath
- jQuery1.2选择器(转)
- jquery基础教程 选择器(selectors 的xpath语法应用)
- jQuery各种选择器、节点、事件,删除、复制、插入元素的使用方法总结
- (转)jquery基础教程七 选择器(selectors 的xpath语法应用)