📅  最后修改于: 2022-03-11 15:01:55.543000             🧑  作者: Mango
function writeUserData(userId, name, email, imageUrl) {
firebase.database().ref('users/' + userId).set({
username: name,
email: email,
profile_picture : imageUrl
});
}