$.ajax({
url: "a.xml",
dataType: "xml",
type: "GET",
error: function(xml) {alert("error");},
success: function(xml) {
$(xml).find("tag").each(function(i) {
var id = $(this).attr("id");
var lower = $(this).children("lower").text();
//......
});
}
});
时间: 2024-12-28 02:02:28