效果后我终于得到了反弹,但由于某种原因,提交后它不会关闭facebox。之前提交后关闭了,但是我做错了什么?
$.ajax({
url: '../../_lib/forms/comment_ajax.php?id=<?php echo $_GET['id']; ?>',
data: { form_name: name, form_comment: comment },
success: function(data) {
$('#new_comment').append(data);
$(document).trigger('close.facebox');
$('#new_comment').effect("bounce", { direction:'down', times:5 }, 300);
$('html,body').animate({scrollTop:0}, 2000, "easeOutElastic");
return false;
}
});
});