我想用Promise.all返回一个promises列表,但结果总是空的。这是我的理论代码: function myFunction() {
constchaining is correct as the 'promises' array is correctly fulfilled, but lat
我的目标是在Firestore文档中使用reference数据类型从字段中获取数据。我使用嵌套的promise来获取数据。当前的代码没有等到所有的承诺都实现了。user_name = "Sherly", // name from a document in `user` collection.
} 实际结果,customer_name是"“而不是"John”,后者是从customer集合中的文