📅  最后修改于: 2022-03-11 14:48:22.743000             🧑  作者: Mango
html
...
ts file
@ViewChildren("checkboxes") checkboxes: QueryList;
uncheckAll() {
this.checkboxes.forEach((element) => {
element.nativeElement.checked = false;
});
}