您好,以下是JSONCloudstore 上的結(jié)構(gòu)。我想獲取特定用戶的最后 10 條通知,因此我正在嘗試以下代碼。var collectionDocument = 'b12b9ffa-eca9-4022-b6a4-497eef873100';console.log(collectionDocument);var docRef = database.collection(collectionDocument + "/Notifications/");resposne = docRef.orderBy("Timestamp").limit(3);console.log(resposne.data());它會拋出一個錯誤home:198 Uncaught TypeError: resposne.data is not a function我做對了嗎?或者我需要更改代碼嗎?
Firebase JavaScript 排序
莫回?zé)o
2023-07-29 16:24:28