Heim >Web-Frontend >js-Tutorial >firefox下jQuery UI Autocomplete 1.8.*中文输入修正方法_jquery
找到以下代码:
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 );
});
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);
});