zl程序教程

您现在的位置是:首页 >  其他

当前栏目

firefox下jQueryUIAutocomplete1.8.*中文输入修正方法

中文方法输入 firefox 修正
2023-06-13 09:14:35 时间

找到以下代码:

复制代码代码如下:

.bind("blur.autocomplete",function(event){
               if(self.options.disabled){
                   return;
               }

               clearTimeout(self.searching);
               //clicksonthemenu(orabuttontotriggerasearch)willcauseablurevent
               self.closing=setTimeout(function(){
                   self.close(event);
                   self._change(event);
               },150);
           });


替换成:
复制代码代码如下:

.bind("blur.autocomplete",function(event){
               if(self.options.disabled){
                   return;
               }

               clearTimeout(self.searching);
               //clicksonthemenu(orabuttontotriggerasearch)willcauseablurevent
               self.closing=setTimeout(function(){
                   self.close(event);
                   self._change(event);
               },150);
           }).bind("input",function(c){//jQueryUIAutocomplete1.8.*中文输入修正
               self.search(self.item);
           });


经过经验,在1.8.16-1.8.23(目前最新版本),均可实现