// 动态信息验证
function dyValidation(path, method, mess, errorMsg, focusId) {
ba="ddd";
$.ajax( {
url : path + '/bs/base/check!' + method + '.action',
type : 'POST',
data : {
mess : mess
},
dataType : 'json',
error : function() {
},
success : function(data) {
if (data.pass == false) {
alert(errorMsg);
$("#" + focusId).focus().select();
}
ba="ccc";
}
});
alert("b"+ba);
return ba;
}
执行完,打印出来的还是ddd没有改变成ccc,这是为什么呢