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 和淘汰赛来实现它。Knockout 会将数据绑定到复选框。
对数据进行简单的 foreach,每个表格行的代码绑定到每个数据项中的各个属性,每个表格单元格一个属性。您可以使用选中的绑定来确定是否需要选中复选框。