console出来的数组不显示元素数量,但是数组有内容,wx:for也用不了。不知道该怎么办。。
wx:for读取不了数组,好像是数组的问题?wx:for can't read the array, it seems to be an array problem?
wx:for读取不了数组,好像是数组的问题?console出来的数组不显示元素数量,但是数组有内容,wx:for也用不了。不知道该怎么办。。
The array produced by the console does not display the number of elements, but the array has content, and Wx: for is also useless. I don't know what to do..
回答:
that.setData({ array_sign: res.data})
打印放到 setData的回调里大哥。
百度了解一下 JS异步 问题吧