📌  相关文章
📜  让所有数据库做出本机反应 - Javascript 代码示例

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

代码示例1
var recentPostsRef = firebase.database().ref('/store');
recentPostsRef.once('value').then(snapshot => {
  // snapshot.val() is the dictionary with all your keys/values from the '/store' path
  this.setState({ stores: snapshot.val() })
})