最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
jQuery读取XML文件的方法示例
时间:2017-03-12 编辑:简简单单 来源:一聚教程网
代码如下 | 复制代码 |
|
代码如下 | 复制代码 |
functionStandardTaxRate() { $.ajax({ url:"/Resource/salaryTaxRate.xml", dataType:'xml', type:'GET', timeout: 2000, error:function(xml) { alert("加载XML 文件出错!"); }, success:function(xml) { $(xml).find("taxrate").each(function(i) { varoid = $(this).attr("id"); varlower = $(this).children("lower").text(); varupper = $(this).children("upper").text(); varrate = $(this).children("rate").text(); varbuckle = $(this).children("buckle").text(); ///后续操作。。。 }); } }); } |
-
上一个: Node.js的特点详解
-
下一个: jquery折叠菜单及选择器的运用
相关文章
- HTML简单购物数量小程序代码展示 10-31
- html canvas实现弹幕功能 10-31
- HTML中空格表示的意义 10-31
- html area标签解读 10-31
- html使用表单标签实现注册页面代码展示 10-31
- 使用HTML截图并保存为本地图片的代码展示 10-31