您的位置:首页 > 产品设计 > UI/UE

easyui ComboBox 中文检索问题

2015-11-12 15:31 399 查看

if (opts.editable) {
    /*if (_921.timer) {
     clearTimeout(_921.timer);
    }
    _921.timer = setTimeout(function() {
     var q = t.combo("getText");
     if (_921.previousText != q) {
      _921.previousText = q;
      t.combo("showPanel");
      opts.keyHandler.query.call(_920, q, e);
      t.combo("validate");
     }
    }, opts.delay);*/
    t.combo('textbox').bind("input", function (e) {
              if(_921.timer){
                  clearTimeout(_921.timer);
              }
              _921.timer=setTimeout(function(){
                  var q=t.combo("getText");
                  if(_921.previousText!=q){
                   _921.previousText=q;
                      t.combo("showPanel");
                      opts.keyHandler.query.call(_920,q,e);
                      t.combo("validate");
                  }
              },opts.delay);
          });
   }

 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: