var firebaseRef = firebase.database().ref();
firebaseRef.child(`users/${uid}/todos`).remove().then(() => { console.log('ok') });
console.log(firebaseRef)
显示U {u: Qg, path: E, m: lf, Nc: false, then: undefined…}
我做错了什么?
最佳答案
改变这个
firebaseRef.child(`users/${uid}/todos`).remove().then(() => { console.log('ok') });
至
firebaseRef.child(`/users/${uid}/todos`).remove().then(() => { console.log('ok') });