$.ajax({
type: "get",
url: "database/app_all.xml",
datatype: "xml",
timeout: 2000,
beforesend: function () {},
success: function (xml) {
$("#contain").html($(xml).find("app[id='id-1']").find("auther").text());
} ,
error: function () {
alert("ajax failed!");
}
});
时间: 2024-10-30 13:49:35