且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Angular 2路由-隐藏URL

更新时间:2022-01-10 17:41:17

最后找到了一种简单的方法。 history.pushState({}, Edit, http:// localhost:4200 /); 对于之后的工作正常。

Found an easy way in the end. history.pushState({},"Edit","http://localhost:4200/"); works fine for what im after.