vue中的router和route有什么区别?

我只知道前者一般用在跳转路由的时候,push一个url, 而后者则用来存储路由跳转过程中存储的各种数据。

话不多说,这篇博客讲的比较详细,可以参考一下。

[vue2.0中的$router 和 $route的区别](https://www.cnblogs.com/czy960731/p/9288830.html)

posted @ 2019-11-30 21:59  Micheal_L  阅读(674)  评论(0编辑  收藏  举报