zoukankan      html  css  js  c++  java
  • 修正点击事件的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);
                }
            });
  • 相关阅读:
    POJ 2154
    POJ 1286
    Polycarp's problems
    Greedy Change
    Goods transportation
    Ugly Problem
    Happy Matt Friends
    Dense Subsequence
    Ray Tracing
    Batch Sort
  • 原文地址:https://www.cnblogs.com/WZH75171992/p/4800073.html
Copyright © 2011-2022 走看看