📜  firebase 读取数据 javascript 代码示例

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

代码示例1
var starCountRef = firebase.database().ref('posts/' + postId + '/starCount');
starCountRef.on('value', (snapshot) => {
  const data = snapshot.val();
  updateStarCount(postElement, data);
});