function BtnList_Click() { $.ajax({ url: "aa.asmx/GetList", data: {}, type: "post", success: fu

前端之家收集整理的这篇文章主要介绍了function BtnList_Click() { $.ajax({ url: "aa.asmx/GetList", data: {}, type: "post", success: fu前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  <script type="text/javascript" language="javascript">
function BtnList_Click() {
$.ajax({
url: "aa.asmx/GetList",
data: {},251)">type: "post",251)">success: function(data,status) {
var str = "";
try {
var obj = $(data.xml);
var vals = obj.find("string");
$.each(vals,function(index,item) {
str += $(item).text() + "<br/>";
});
$("#dd").html(str);
}
catch (ex) {
alert(ex);
</script> 原文链接:https://www.f2er.com/ajax/166311.html

猜你在找的Ajax相关文章