html5 history api

            window.history.replaceState(argument1, argument2);
            window.history.pushState(argument1, argument2);
        

Window.location

https://developer.mozilla.org/zh-CN/docs/Web/API/Window/location

Window.location 只读属性,返回一个 {{domxref("Location")}} 对象,提供有关文档当前地址的信息。

尽管 Window.location 是一个只读 Location 对象,你仍然可以赋给它一个 {{domxref("DOMString")}}。 这意味着您可以在大多数情况下处理 location,就像它是一个字符串一样: window.location = 'http://www.example.com',是 window.location.href = 'http://www.example.com' 的同义词 。