var mynavData = JSON.stringify(that.navData); // 这里转换成 字符串
uni.navigateTo({
url:'./nav?index='+mynavData
})
//新页面接收后:
onLoad(options) {
var data = JSON.parse(options.index); // 字符串转对象
console.log(data)
}
2.标签跳转
<navigator :url=" './nav?index='+navData">点击传递参数</navigator>
标签:传参,uniapp,index,mynavData,JSON,跳转,var From: https://www.cnblogs.com/shuhan-hou/p/16889433.html