vue使用this.$route获取路由信息一、this.$route this.$route.path为页面的路由路径二、location location.pathname 和this.$route.path效果相同版权声明:本文为weixin_46112225原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。原文链接:https://blog.csdn.net/weixin_46112225/article/details/122059779