📜  firebase 更新返回结果 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:45.332000             🧑  作者: Mango

代码示例1
var fredNameRef = new Firebase('https://docs-examples.firebaseio.com/samplechat/users/fred/name');

fredNameRef.on('value', function(snap) {
  console.log(snap.val());
});

fredNameRef.update({ first: 'Wilma', last: 'Flintstone' });



credit: https://stackoverflow.com/questions/36105690/how-to-return-success-data-after-update-in-firebase