JSON.stringify():用来将数组对象转为字符串
JSON.parse():用来将字符串转为对象
uni.navigateTo({
url: '../view/view?list='+JSON.stringify(this.numbers),
success: res => {
console.log("跳转成功");
},
fail: () => {
console.log("跳转失败");
},
});
onLoad:function(param) {
console.log("onload接收到的参数↓");
console.log(JSON.parse(param.list));
this.list = JSON.parse(param.list);
},
参考https:///qq_34908844/article/details/75093955