js修改浏览器url

var stateObject = {};
var title = "";
var newUrl = "/";
history.pushState(stateObject,title,newUrl);

posted @   洋葱土豆随心匠  阅读(1718)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示