$("#weaver").on("click", ".checkbox", function () { var test = $(this).prop("checked"); if (this.checked) { $(this).parentsUntil("tr").parent().siblings().find(".checkbox").each(function () { if (test == this.checked) { this.checked = false; } }); } })
JS控制数据列表只能单选
最新推荐文章于 2022-03-10 11:05:54 发布