【发布时间】:2020-06-09 07:13:12
【问题描述】:
我正在尝试返回从使用 Ionic 和 Angular 的 firease 查询中获得的数据,但数组返回“未定义”
QueryList (id: string ) {
this.db.collection('/list', ref => ref.where('id', '==', id)).valueChanges().subscribe(ref => {return ref});
}
返回数组的正确语法是什么?
【问题讨论】: