前端页面的连接通过页面跳转,有时候需要解析url地址传递的参数,记录方法,
完整url可以用 window.location.href
路由路径可以用 this. r o u t e . p a t h 路 由 路 径 参 数 t h i s . route.path 路由路径参数 this.
前端vue解析url地址
最新推荐文章于 2024-06-03 17:08:19 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
前端页面的连接通过页面跳转,有时候需要解析url地址传递的参数,记录方法,
完整url可以用 window.location.href
路由路径可以用 this. r o u t e . p a t h 路 由 路 径 参 数 t h i s . route.path 路由路径参数 this.