Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
http://www.bootstrap-switch.org/examples.html
我正在使用 Indeterminate 开关(它将复选框保持在真假之间)。问题是开关默认为true。
基本上我希望该字段提交为零,除非用户特别选择真或假。
杰克逊这就是你所需要的吗? 切换的用途相同。
<label> <input type="checkbox" checked> Checked </label> <br><br> <label> <input type="checkbox" unchecked> unChecked </label>