我有这样的jQuery的AJAX调用返回值
function check(parameters){
some code;
$.post('/url', function(data) {
//and here I want if data==0 return false from function check
//if no go and skip to instruction 1
});
instruction 1;
}
我想在我的程序以后如果(检查(PARAMS)== 0),但它似乎并不工作。例如:使用代码。 我如何在Java脚本做到这一点?我需要做如果($。post ... == 0)? 致以问候
感谢您的帮助它解决了我的问题 – John