function StandardTaxRate()
{
$.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)
{
var oid = $(this).attr("id");
var lower = $(this).children("lower").text();
var upper = $(this).children("upper").text();
var rate = $(this).children("rate").text();
var buckle = $(this).children("buckle").text();
///后续操作。。。
});
}
});
}
jquery读取xml文件
最新推荐文章于 2020-07-17 14:17:01 发布