outDoorFeatures ={ Belcony , Elevator, Garden}
for (let _i = 0; _i < outDoorFeatures.length; _i++) {
const outDoorFeatures = this.db.database.ref( 'NewYork' )
.orderByChild( 'outDoorFeatures' ).equalTo( outDoorFeatures [ _i ] )
.on('value', function (snapshot) {
console.log(snapshot.val());
snapshot.forEach(function (data) {
console.log(data.key);
});
});
}
我需要显示所有存储在数据库中的信息,并使用诸如key1,area2和area3之类的键来表示。