firefox下jQueryUIAutocomplete1.8.*中文輸入修正方法_jquery
來源:懂視網(wǎng)
責編:小采
時間:2020-11-27 21:05:05
firefox下jQueryUIAutocomplete1.8.*中文輸入修正方法_jquery
firefox下jQueryUIAutocomplete1.8.*中文輸入修正方法_jquery:找到以下代碼: 代碼如下:.bind( blur.autocomplete, function( event ) { if ( self.options.disabled ) { return; } clearTimeout( self.searching ); // clicks on the menu (or a button to t
導讀firefox下jQueryUIAutocomplete1.8.*中文輸入修正方法_jquery:找到以下代碼: 代碼如下:.bind( blur.autocomplete, function( event ) { if ( self.options.disabled ) { return; } clearTimeout( self.searching ); // clicks on the menu (or a button to t
找到以下代碼:
代碼如下:
.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);
});
經(jīng)過經(jīng)驗,在1.8.16-1.8.23(目前最新版本),均可實現(xiàn)
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
firefox下jQueryUIAutocomplete1.8.*中文輸入修正方法_jquery
firefox下jQueryUIAutocomplete1.8.*中文輸入修正方法_jquery:找到以下代碼: 代碼如下:.bind( blur.autocomplete, function( event ) { if ( self.options.disabled ) { return; } clearTimeout( self.searching ); // clicks on the menu (or a button to t