修正点击事件的js

       //选中状态
        $(".itemcheckbox").click(function (event) {
            var invoker = $.event.fix(event).target;
            var inputer = $(invoker).parents(".productul").prev(".dp_ps").find(".sellerall");
            if (!$(invoker).is(":checked")) {
                $(inputer).prop("checked", false);
            }
            updateTotalPrice();
            updatetotalcunt();
            var checklist = $(invoker).parents(".productul").find(".itemcheckbox:checked");
            var checkboxlist = $(invoker).parents(".productul").find(".itemcheckbox");
            if ($(checklist).length === $(checkboxlist).length) {
                $(inputer).prop("checked", true);
            }
        });
原文地址:https://www.cnblogs.com/WZH75171992/p/4800073.html