代码如下 | 复制代码 |
|
代码如下 | 复制代码 |
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(); ///后续操作。。。 }); } }); } |