有没有办法在不重新加载页面的情况下修改当前页面的 URL?( K, W. H% A& @3 s L# f' f- u* h
如果可能的话,我想去# hash前一部分。% J. z' G: d- p) n/ e9 x [
我只需要更改域之后因此,我不违反跨域战略。" z+ A2 \1 j( {: _- ]& }/ Y, l' b
window.location.href = "www.mysite.com/page2.php"; // Sadly this reloads 2 U- G4 L# N& C/ G! u$ P