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.
如何在 HTML 中将复选框设置为未选中?我试过这些,它总是按检查加载
<input id="chkBox" checked type="checkbox" /> <input id="chkBox" checked=false type="checkbox" /> <input id="chkBox" checked="false" type="checkbox" />
我可以通过 javascript 修改选中的属性。
您根本不做任何事情,默认情况下未选中。
<input id="chkBox" type="checkbox" />