|
本帖最后由 Cover-L 于 2021-11-9 18:34 编辑
在主界面上
<frame class="frabox" url="./piechart.html" pageParam={this.data.cre}>
</frame>
data中
data() {
return {
cre: [{
value: 78,
name: '听',
itemStyle: {
normal: {
color: "rgba(53, 187, 248, 1)"
}
},
}, {
value: 56,
name: '听1',
itemStyle: {
normal: {
color: "rgba(53, 187, 248, 1)"
}
},
}, {
value: 34,
name: '听2',
itemStyle: {
normal: {
color: "rgba(53, 187, 248, 1)"
}
},
}],
}
},
frame页面
function apiready() {
console.log(JSON.stringify(api.pageParam));//打印的结果{}
}
写法上有错吗?
|
|