2012-08-13 47 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"