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('校验失败')
}
}
})