如何获取对象中的对象?
发布于 4 年前 作者 bwei 9527 次浏览 来自 问答

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

3 回复

this.data.store吧

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

确定不是异步?

回到顶部