更新时间:2023-12-05 23:24:22
firebase 对象的初始化已针对旧版本完成,请参阅此 https://firebase.google.com/docs/web/setup ,它使用 firebase.initializeApp(config)
而不是 new firebase()
Initialization of firebase object was done for the old version, see this https://firebase.google.com/docs/web/setup , it uses firebase.initializeApp(config)
instead of new firebase()
使用此代码更新您的数据库与用户的附加字段
to update your database with user's additional fields use this code
firebase.database().ref('users/' + user.uid).set({
firstName: firstName,
lastName: lastName
})