本文介绍了将ajax回调替换为jquery回调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以帮助我将以下ajax回调方法替换为jquery回调方法吗?
Can someone help me replace the following ajax callback method with a jquery callback method ?
function PostCall() {
$('#txtRes').val('Please Wait......');
var reqval = $('#txtReq').val();
$.ajax({
url: "myPage",
type: 'post',
data: "{'name':'" + reqval + "'}",
async: true,
contentType: "application/json",
success: function (result) {
$('#txtRes').val(result);
}
});
}
推荐答案
这篇关于将ajax回调替换为jquery回调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!