zoukankan      html  css  js  c++  java
  • 企业级后台列表常用操作

    //全选/反选
    $("#all").click(function(){
    $(":checkbox").attr("checked",this.checked)
    });

    //审核通过
    $("#ok").click(function(){
    var flag = $("input[name=id]:checked").length == 0;
    if(flag){
    alert("请至少选择一条!");
    }else{
    var ids = "";
    $("#uncheckReason").val("");
    $("input[name=id]").each(function(){
    if($(this).is(':checked')){
    ids+=$(this).val()+",";
    }
    })
    $("#ids").val(ids);
    $("#form").attr("action","clearBatchInfo!verifyOk.action").submit();
    }
    });

    //审核不通过
    $("#no").click(function(){
    var flag = $("input[name=id]:checked").length == 0;
    var uncheckReason = $("#uncheckReason");
    if(flag){
    alert("请至少选择一条!");
    }else if($.trim(uncheckReason.val()) == ""){
    alert("请输入审核不通过原因!");
    uncheckReason.focus();
    }else{
    var ids = "";
    $("input[name=id]").each(function(){
    if($(this).is(':checked')){
    ids+=$(this).val()+",";
    }
    })
    $("#ids").val(ids);
    $("#form").attr("action","clearBatchInfo!verifyNo.action").submit();
    }
    });

  • 相关阅读:
    BSGS模板(互质与不互质) 洛谷P4195、P3846
    整除分块(数论分块)
    洛谷P3327 [SDOI2015]约数个数和——莫比乌斯反演
    模块二
    模块
    二分法 匿名函数
    3.26作业
    函数的递归调用
    yield表达式 三元表达式
    3.25作业
  • 原文地址:https://www.cnblogs.com/dsking/p/5284255.html
Copyright © 2011-2022 走看看