如何获取ajax 的responsetext的返回值

2025-02-25 19:10:59
推荐回答(1个)
回答1:

$.ajax({
type: "POST",
url: "abc.ashx",
data: {"str": strText },
dataType: "json",
async: false,
success: function(responseText) {
responseText; //这就是返回的responseText
},
error: function (e) {
return;
}
});