0
私はここにfirebaseから取得したいオブジェクトのスクリーンショットを持っています。ReactJS - firebase特定のキーを持つレコードを照会する方法
これは私が私が欲しいものではありませんどのこの応答に
を持って、私はそれを行う方法
constructor(){
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));
}
ですが、私はこの
ような何かを期待していました{
object{ address1: '', address2: '', postalCode: ''}
email: "",
firstName:"ohoh",
gender:"",
id:1460331472003,
lastName: "asd",
phone: ""
}
どうやったらいいですか?
がhttps://www.firebase.com/docs/web/guide/retrieving-data.htmlを参照してください。 – Kato