jquery ajax请求步骤

$.ajax({
type: "GET",
url: "/alink-hq/checkCode",
data: {
"mobile": phoneVal,
"code": codeVal
},
async: false,
success: function (res) {
if (res == "success") {
result = res;
console.log('校验成功')
} else {
result = res;
console.log('校验失败')
}
}
})
posted @ 2019-05-17 10:19  清新的夹心饼干  阅读(6836)  评论(0编辑  收藏  举报