📅  最后修改于: 2022-03-11 14:56:20.035000             🧑  作者: Mango
database.ref('/app/posts')
.orderByChild('material')
.equalTo(materialName)
.once('value', function (snapshot) {
snapshot.forEach(function(child) {
child.ref.update({material: false});
});
});