📜  javascript 写入 firebase - Javascript 代码示例

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

代码示例1
function writeUserData(userId, name, email, imageUrl) {
  firebase.database().ref('users/' + userId).set({
    username: name,
    email: email,
    profile_picture : imageUrl
  });
}