2012-08-13 23 views
-4

可能重複:
How to redirect from one URL to another URL?做一個重定向jQuery中

我已經在我試圖重定向到另一個頁面下面的jQuery函數 - 我將如何做這個?

$.post('/ajax/change_qc_status/', { 
     'qc_note': qc_note, 
     'user': user 
    }, 
    function(request){ 
     $.get('/summary/90') // this does nothing 
    } 
); 

需要注意的是,如果我去/summary/90的頁面是正確的頁面。

+1

上帝,我討厭'tab'空間。你*不*重做本身。你正在嘗試*異步獲取內容。這是不一樣的。 – 2012-08-13 00:07:06

+0

window.location = url m8 ... – themis 2012-08-13 00:20:39

回答

4

你完全不需要jQuery。

只是使用window.location = "intended URL"