jquery ui 自動完成對中文字搜尋Bug(firefox)
生活随笔
收集整理的這篇文章主要介紹了
jquery ui 自動完成對中文字搜尋Bug(firefox)
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
jQuery UI 版本:1.8.9
主要原因是中文輸入時(shí)不會(huì)觸發(fā)原本在autocomplete 榜定的keydown事件。
try this one:
//fixed firefox and ie in IME bug
jQuery('#searchkey').bind( "input.autocomplete", function(){
? ? ? ? ? ? ?$(this).trigger('keydown.autocomplete');
參考:http://groups.google.com/group/jquery-/browse_thread/thread/8f34129edc5da55e
轉(zhuǎn)載于:https://www.cnblogs.com/joe-yang/archive/2011/02/18/1958186.html
總結(jié)
以上是生活随笔為你收集整理的jquery ui 自動完成對中文字搜尋Bug(firefox)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 年底离职的都是人才 想换工作的一定抓住时
- 下一篇: B3log Solo 0.2.5.1 发