Vue2 使用事件跳转页面

给标签添加点击事件:

get传参:

1
2
3
4
5
6
this.$router.push({
path:"",
query:{

}
})
JAVASCRIPT

传参结果

参数接收

1
this.$route
JAVASCRIPT

结果如图:

post传参:

1
2
3
4
5
6
this.$router.push({
name:"",
parmas:{

}
})
JAVASCRIPT

接收:

1
this.$route
JAVASCRIPT

Vue2 使用事件跳转页面
https://github.com/chergn/chergn.github.io/c39537b61a0d/
作者
全易
发布于
2024年3月28日
许可协议