.post jQuery的AJAX方法:
.post
// completion toggling $('.item input').click(function() { $.post('complete.php', {item: this.id}, function() { $(this).parent().fadeOut('slow'); }); });
我在这里做错了什么?AJAX在记录更新时工作,但回调事件从未发生。Firebug中也没有错误。
$('.item input').click(function() { var tmp = this; $.post('complete.php', {item: this.id}, function() { $(tmp).parent().fadeOut('slow'); }); });