所以我使用Firebase來拉JSON並將它變成一個GasUse對象的數組。 這是GasUse類。它的初始值設定項接受Dictionary,並在缺少key:value對時拋出錯誤。 class GasUse {
let distance: Double
let comment: String?
let addedByUser: String
let cre
我有這樣的功能: //We will store any failed subscriptions and retry them until the succeed (if ever)
addFailedSubscription: function(streamId) {
failedSubscriptions[streamId] = true;
$timeout(funct