var id = $("input#user_id").val();
if (id != "") {
$.post("function.php?act=check_id", { id: id }, function(data) {
if (data == "error") {
return false;
}
});
//some other codes going on here....
正如你可以看到我试图打破从ajax后数据来的功能,但它继续其他代码。我的意思是return false
没有打破它。无法打破jQuery的功能,当有一个AJAX后
我在哪里错了?
感谢
我可以做只是为了特定的帖子或页面中所有的帖子? – 2010-11-24 18:06:36
这太奇怪了。 ... [A] jax呼叫是同步的。 – scottm 2010-11-24 18:07:38