uniapp返回上一页携带参数,两种方法,实测有效
方法一:
- pages/pre/pre.vue
返回的数据为:
id: {{testdata.id}}
name: {{testdata.name}}
- pages/next/next.vue
方法二(相对来说,没有方法一简练):
- pages/pre/pre.vue
返回的数据为:
id: {{testdata.id}}
name: {{testdata.name}}
- pages/next/next.vue
- 参考:https://www.icode9.com/content-4-1055091.html