var checkbox = document.getElementById('some-checkbox');
// You can't make a checkbox indeterminate through HTML.
// It is a property of checkboxes though, which you can change via JavaScript
// The indeterminate state is visual only
// Like the checkboxes themselves, indeterminate state looks different in different browsers
checkbox.indeterminate = true;
技术
产品