函数间使用数组问题

发布于 6 年前作者 guiyingyu2676 次浏览最后编辑 6 年前来自 ask

      data中也有一空数组A;

onload函数中,setData({A:B}),在页面上能显示A数组内容;

现在我在函数formSumbit中,想使用数组A,但是提示A数组 not  defined,

请问,难道setData没有对A数组赋值吗?我要如何才能在函数formSumbit中使用数组A呢?

谢谢。

2 回复
qiang76
qiang761 楼6 年前

 非常感谢!!

fang64
fang642 楼5 年前

this.data.A