zoukankan      html  css  js  c++  java
  • easyui loadFilter 使用

    $('#selectChannelForSignup_getBill').combobox({
        url:'../channel/listAdvanceChannelPage',
        queryParams:{offset:0,limit:9999,channelName:"",sourceGroupId:0,usageState:0},
        valueField : 'channelId',
        textField : 'channelName',
        editable:false,
        panelHeight:'auto',
        panelMaxHeight:200,
        loadFilter: function(data){
            console.info(data);
             //过滤数据
            var value={
                    total:9999,
                    rows:[]
                };
            var x=0;
             for (var i = 0; i < data.length; i++) {  
                 if(data[i].creditAvailable > 0){
                     value.rows[x++]=data[i];
                 }
             }
             console.info(value.rows);
             return value.rows;
        }
    
    })

    使用loadFilter函数处理来自Web Services的JSON数据。

  • 相关阅读:
    F. 数学上来先打表
    LibreOJ β Round #2
    noip飞扬的小鸟
    jxoi2017
    分块算法
    Chino的数列
    cf 613E
    cf 126D
    cf 542E
    cf 512D
  • 原文地址:https://www.cnblogs.com/ryans/p/6607080.html
Copyright © 2011-2022 走看看