firefox下jQuery UI Autocomplete 1.8.*中文输入修正方法

时间:2012-09-19    点击:119   

找到以下代码:

复制代码 代码如下:

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

                clearTimeout( self.searching );
                // clicks on the menu (or a button to trigger a search) will cause a blur event
                self.closing = setTimeout(function() {
                    self.close( event );
                    self._change( event );
                }, 150 );
            });


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

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

                clearTimeout( self.searching );
                // clicks on the menu (or a button to trigger a search) will cause a blur event
                self.closing = setTimeout(function() {
                    self.close( event );
                    self._change( event );
                }, 150 );
            }).bind('input',function (c) {//jQuery UI Autocomplete 1.8.*中文输入修正
                self.search(self.item);
            });


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

jQuery点击后一组图片左右滑动的实现代码
JavaScript高级程序设计 阅读笔记(二十) js错误处理
JavaScript高级程序设计 阅读笔记(十八) js跨平台的事件
jQuery学习笔记 操作jQuery对象 属性处理
jQuery学习笔记 操作jQuery对象 CSS处理
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved