this.data获取不到值?

小程序 文章 2021-03-22 21:21 42 0 全屏看文

this.data获取不到值?Can't get the value of this.data?

this.data获取不到值?

如图,在第一个for循环后面用console.log(this.data.recordPath)获取不到值,在第一个for循环前面可以获取到值,

在此函数调用的后面也能获取到,这是因为什么?非常疑惑

As shown in the figure, after the first for loop, use console.log ( this.data.recordPath )If you can't get the value, you can get it before the first for loop and after this function call. Why? Very confused

回答:

维她命系:

用 try-catch 包裹 for 循环执行下试试

Made in.内江:

同步异步了解下。

陈宇明:

看下打印记录

-EOF-