後阿賈克斯成功函數之後刷新主網頁重定向頁面,我想重定向頁面,而無需刷新主頁怎麼沒有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