用Javascript主动更行URL

参考---ttp://www.oschina.net/translate/manipulating-url-using-javascript-without-freshing-the-page

var stateObject = {};
var title = "Wow Title";
var newUrl = "/my/awesome/url";
history.pushState(stateObject,title,newUrl);

 

posted @ 2015-08-21 17:37  flowjacky  阅读(164)  评论(0)    收藏  举报