-1
我的結構是這樣的:如何從Firebase獲取過濾的數據?
[{ id: 1, isDraft: true}, {id: 2, isDraft: false}, {id:3, isDraft: true},...]
我如何獲得價值只有在isDraft === true
?
我的結構是這樣的:如何從Firebase獲取過濾的數據?
[{ id: 1, isDraft: true}, {id: 2, isDraft: false}, {id:3, isDraft: true},...]
我如何獲得價值只有在isDraft === true
?
非規範化的數據:
isDraft:{
1:true,
3:true,
....
}
refIsDraft.once('value', function(ss){
//ss.val() contains all your isDraft references
}
這裏是東西read
見http://stackoverflow.com/questions/25272919/how-to-query-firebase-for-property-with-特定值內,所有的孩子?RQ = 1 – 2014-10-07 10:48:44