$("#all").click(function () { if($(this).is(":checked")){ $("input[name='product']").prop("checked",true); }else{ $("input[name='product']").prop("checked",false); } })
本文共 270 字,大约阅读时间需要 1 分钟。
$("#all").click(function () { if($(this).is(":checked")){ $("input[name='product']").prop("checked",true); }else{ $("input[name='product']").prop("checked",false); } })
转载于:https://www.cnblogs.com/yangshangjin/p/7026559.html