0
關於以下數據,我如何使用angularfire獲取phoneNo爲222的記錄。Firebase查詢和angularJS
var db = new Firebase("myFB/names");
$scope.synchArr = $firebaseArray(db);
names{
K7VQBTELD4FQE1HL1U{
name: "a",
phoneNo: 111
}
K7WJGBTELD4FQ1EHL1U{
name: "b",
phoneNo: 222
}
}
謝謝,但我想檢索整個對象。我試試這個:var db = new Firebase(「myFB/names」); (「phoneNo」)。equalTo(222).on(「value」,function(snapshot){console.log(「here:」+ snapshot.val()); }); db.orderByChild我得到這個:here:[object Object] – Wedadi