$.ajax({
async: true,//异步执行
type: "POST",
url: "/UserInfo/SendSMSTanspwd",
data:{"sendtype":sendtype},
dataType: 'json',
cache: 'false',
success: function (result) {
if (result.Success) {
//$("#transpwderror").text("验证码发送成功!");
alert("验证码发送成功!");
}
else {
//$("#transpwderror").text("验证码发送失败!");
alert("验证码发送失败!");
}
},
error: function () {
//$("#transpwderror").text("验证码发送失败!");
alert("验证码发送失败!");
}
});
async: true,//异步执行
type: "POST",
url: "/UserInfo/SendSMSTanspwd",
data:{"sendtype":sendtype},
dataType: 'json',
cache: 'false',
success: function (result) {
if (result.Success) {
//$("#transpwderror").text("验证码发送成功!");
alert("验证码发送成功!");
}
else {
//$("#transpwderror").text("验证码发送失败!");
alert("验证码发送失败!");
}
},
error: function () {
//$("#transpwderror").text("验证码发送失败!");
alert("验证码发送失败!");
}
});