0
Burada Firebase almak istediğiniz nesnenin bir ekran görüntüsü var. ReactJS - firebase nasıl özel bir sorgu sorgulama .key
Bu
Benconstructor(){
super();
this.state = {
items: []
};
}
componentWillMount(){
this.firebaseRef = new Firebase('https://sweltering-heat-7923.firebaseio.com/contact/-KF1XUgOvcrybku8Q52s');
this.firebaseRef.once("value", function (snapshot){
snapshot.forEach(function(data){
console.log(data.val());
}.bind(this));
}.bind(this));
}
ben bu yanıtı
Ben bu gibi bir şey bekliyordum, ne istediğini değilvar böyle yaparız
{
object{ address1: '', address2: '', postalCode: ''}
email: "",
firstName:"ohoh",
gender:"",
id:1460331472003,
lastName: "asd",
phone: ""
}
Nasıl yapardınız?
https://www.firebase.com/docs/web/guide/retrieving-data.html bakın. – Kato