📅  最后修改于: 2022-03-11 15:04:50.439000             🧑  作者: Mango
document.getElementById('select').onclick = function() {
var checkboxes = document.getElementsByName('vechicle');
for (var checkbox of checkboxes) {
if (checkbox.checked)
document.body.append(checkbox.value + ' ');
}
}