2013-03-29 48 views

回答

0
if (typeof (window.history.pushState) == 'function') { 
    window.history.pushState({ "html": response.html, "pageTitle": response.pageTitle }, "", urlPath); 
    } else { 
     window.location.hash = '#!' + urlPath; 
    } 

但網址pushState的沒有在IE的支持,以便ü可以使用 '#',再加上網址