function
checkCode(code){
$.ajax({
url:
‘/admin/WebService1.asmx/CheckVerifyImage‘
,
type:
‘POST‘
,
dataType:
"xml"
,
data:{code:code},
<span style=
"color: #FF0000;"
>async:
false
,</span>
success:
function
(msg){
isCodeRight=msg.text;
},
error:
function
(x, e) {
alert(x.responseText);
return
false
;
}});
}
只需要添加async:
false
即可(jquery适用)
时间: 2024-10-14 13:26:23