1.遍历checkbox-根据type
$("input[type='checkbox']").each(function () {
$(this).prop('checked',false);
});
2.遍历checkbox-根据name
$("input[name='level_input']").each(function () {
$(this).prop('checked',false);
});
3.获取所有选中项的值
let level_input_arr = [];
$("input[name='level_input']:checked").each(function () {
level_input_arr.push(this.value);
});