📅  最后修改于: 2022-03-11 14:48:28.035000             🧑  作者: Mango
this.db
.collection('cart')
.get()
.toPromise()
.then((querySnapshot) => {
querySnapshot.forEach((doc) => {
doc.ref.delete();
});
});