就像这样:
function as(){
jQuery.ajax({
url:'#springUrl("/a/abc.htm")',
data:{"verifyCode":code},
type:"post",
async:false,
dataType:"json",
success:function(reg){
if(!reg.isTrue){
jQuery("#iscode").val(reg.isTrue);
alert("验证码错误");
//这里进行终止后面的运行
}else{
jQuery("#iscode").val("");
}
}
})
}
function abcd(){}
这里的顺序执行我用过 return ; 不行 跳转也不行 抛异常也不行,那位大佬有高招,指点一下小弟吧