过滤

来源:互联网 发布:手机专用玻璃优化软件 编辑:程序博客网 时间:2024/05/01 03:19

过滤grid中的某条记录  

grid.store.on("load", function(){
      grid.store.filterBy(function(rec, id){
       var text = rec.get('indexName');
     //  console.log(text.indexOf("其他科目"));
                    return (text.indexOf("其他科目")==-1);
      });
     });

原创粉丝点击