如何获取对象中的对象?

小程序 文章 2021-04-02 08:42 1042 0 全屏看文

AI助手支持GPT4.0

如何获取对象中的对象?How to get the object in the object?

如何获取对象中的对象?

获取对象中的非对象可以直接this.store.data.latitude,但是获取this.store.data.student是空,怎么取这个值

Getting non objects in an object can be done directly this.store.data . latitude, but get this.store.data . student is empty. How can I get this value

回答:

武曲心:

let x = this.data.store.student || null 或者 let x = this.data.store.student ? this.data.store.student : null

黑夜白昼:

this.data.store吧

brave:

确定不是异步?

拾忆:自信点

-EOF-

AI助手支持GPT4.0