📅  最后修改于: 2022-03-11 15:01:16.894000             🧑  作者: Mango
// Check
document.getElementById("checkbox").checked = true;
// Uncheck
document.getElementById("checkbox").checked = false;