code: function(rule, callback){
          var res = [];
          callback = callback || function(){};
          this.each(function(item){
              var pass = true;
              if(pass && rule.group != undefined){
                  pass = rule.group == item.parent;
              }
              if(pass && rule.type != undefined){
                  pass = rule.type == item.type;
              }
              if(item.type == 'ip'){
                  if(pass && rule.ip != undefined){
                      pass = rule.ip == item.ip;
                  }
                  if(pass && rule.domain != undefined){
                      pass = rule.domain == item.domain;
                  }
                  if(pass && rule.enable != undefined){
                      pass = rule.enable == item.enable;
                  }
                  if(pass && rule.comment != undefined){
                      pass = rule.comment == item.comment;
                  }
              }else if(item.type == 'text'){
                  if(pass && rule.text != undefined){
                      pass = rule.text == item.text;
                  }
              }
              if(pass){
                  callback.call(item, item);
                  res.push(item);
              }
          });
          return res;
      }
docs: 过滤器
  @param rule {Object} 过滤规则
  @param callback {Function}
  @return {Array}