我正在開發離子2應用程序。 我有這樣的數據在火力 獲取多個firebase節點中的數據總和
我需要的是去throgh的考試節點,並得到總的所有痕跡。在firebase文檔中有 有這樣的例子。
var query = firebase.database().ref("users").orderByKey();
query.once("value")
.then(function(snapshot) {
snapshot.forEach(function(childSnapshot) {
// key will be "ada" the first time and "alan" the second time
var key = childSnapshot.key;
// childData will be the actual contents of the child
var childData = childSnapshot.val();
});
});
但我不知道如何使用這個爲我的情況。 任何人都可以請幫助我?
謝謝
thnx爲想法。無限期需要使用和檢查.Thnx – LVW23