history.replaceState({url:"/admin/index"},null,"/admin/index"); url 是 需要替换的路径 转载于:https://www.cnblogs.com/whm-blog/p/7484928.html