1、this.$router.params.参数key

 

2、引用 taro 框架自带的

import Taro, {getCurrentInstance} from '@tarojs/taro'
 
const  params = getCurrentInstance().router.params
 
 params.参数key
posted on 2021-04-04 03:13  假装新手  阅读(2031)  评论(0编辑  收藏  举报