1、vue-router中$route 和 $route
$route 表示(当前路由信息对象)
参考链接:https://www.jianshu.com/p/fa0b5d919615
官网:https://router.vuejs.org/zh/
2、computed区别于method
- computed是属性调用,而methods是函数调用
- computed其实是既可以当做属性访问也可以当做方法访问
1、vue-router中$route 和 $route
$route 表示(当前路由信息对象)
参考链接:https://www.jianshu.com/p/fa0b5d919615
官网:https://router.vuejs.org/zh/
2、computed区别于method