后阿贾克斯成功函数之后刷新主网页重定向页面,我想重定向页面,而无需刷新主页怎么没有Ajax成功功能
$.ajax({
type: "POST",
url: "save_edit.php",
data: { id1: id, comment1: comment },
success: function(data) {
$("#feedback").html(data);
$('#feedback').fadeIn('slow', function() {
$('#feedback').fadeOut(4000);
window.location = "comment.php";
}
});
调用另一个AJAX功能,你的'success'函数内部 – user2936213
对不起,我是新来的jQuery的东西!你可以解释吗! – user3226210
请参阅下面的答案。 – user2936213