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.
有没有办法为未选中的单选按钮或复选框传递与选中时的值不同的值?我正在使用jQuery进行序列化,所以如果有html或jQuery解决方案会很好。
您可以尝试使一个单选按钮不可见,并在未选中任何内容时传递它的值(将其设置为默认选中单选按钮)