Checkbox 有一个模糊状态(上面显示一条横线),通过 indeterminate 属性实现:
input.indeterminate = true;
// jQuery
input.prop("indeterminate", true);
indeterminate 属性只能使用 JS 来设置,不能通过 HTML 属性设置。
Checkbox 有一个模糊状态(上面显示一条横线),通过 indeterminate 属性实现:
input.indeterminate = true;
// jQuery
input.prop("indeterminate", true);
indeterminate 属性只能使用 JS 来设置,不能通过 HTML 属性设置。