我想删除一个密钥,但我无法实现它。我正在尝试:
ref.child("notifications").once("value", function(usersSnap) {
var i = 0
usersSnap.forEach(function(reciptsSnap) { //for every user
reciptsSnap.forEach(function(reciptSnap) {
reciptSnap.forEach(function(c) {
if (reciptSnap.key=="jkk....."){
console.log("removed date nad its parent"+reciptSnap.key+" "+c.val())
reciptSnap.key.remove() //did not work brings remove is not a function
}