zoukankan      html  css  js  c++  java
  • vue中$router与$route的区别

    $.router是VueRouter的实例,相当于一个全局的路由器对象。包含很多属性和子对象,例如history对象

     

    $.route表示当前正在跳转的路由对象。可以通过$.route获取到name,path,params,query等

     比如:this.$route.name   this.$route.params    this.$route.params.id    this.$route.query等

    每天进步一点点
  • 相关阅读:
    2016CCPC长春
    POJ 3974
    CH 1401
    POJ 1426
    hihocoder 1829
    江南OJ 1151
    POJ 3279
    POJ 3349
    POJ 3278
    ZOJ 3983
  • 原文地址:https://www.cnblogs.com/677a/p/11726468.html
Copyright © 2011-2022 走看看