我正在嘗試使用orderByChildusingdateCreated欄位訂購帳戶串列,但回傳串列(回應)未按以下順序排序dateCreated
this.angularDb.list('accounts', ref => ref
.orderByChild('dateCreated').startAt(0).limitToFirst(10)
).valueChanges()
.subscribe(response => {
for (let item of response) {
this.tableData.push(item);
}
}, error => {
console.log(error);
});
}
知道我做錯了什么嗎?我找不到任何解決此問題的來源
uj5u.com熱心網友回復:
我發現答案是 firebase 不支持排序日期:https : //firebase.google.com/docs/database/web/lists-of-data#data-order
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/379563.html
