📜  firebase js 循环 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:58.730000             🧑  作者: Mango

代码示例1
firebase.database().ref('\interests').child("I would like to dine with").on('value', (snapshot) => {
  snapshot.forEach((child) => {
    console.log(child.key, child.val()); 
    this.intVal.push(child.val());
    console.log("intVal",this.intVal);
  });
  }
})