VUE 獲取路由參數

vue 獲取當前頁面的路由參數 this.$route
在當前頁面  this.$route 輸出當前頁面路由信息 
{
	name: "home", meta: {…}, path: "/",
 	hash: "", query: {…},fullPath:'/',matched:[{}] ,params:{} 
 }

在這裏插入圖片描述

獲取當前頁面的路由信息
	this.$route
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章