如何用jquery打背方法取代以下的麻风机?
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);
}
});
}