实际上,您只需添加以下行:
if ((/iPhone|iPod|iPad/).test(navigator.userAgent) ) {return;}
到开头
.bind( "blur.autocomplete", function( event ) {
功能。
您可以在 jquery ui 文件夹中的 autocomplete.js(或类似名称)中找到它。
我再试一次:转到 jquery.ui.autocomplete.js 并更改此:
blur: function( event ) {
            if ( this.cancelBlur ) {
                delete this.cancelBlur;
                return;
            }
            clearTimeout( this.searching );
            this.close( event );
            this._change( event );
        }
对此:
blur: function( event ) {
if ((/iPhone|iPod|iPad/).test(navigator.userAgent) ) {return;}
            if ( this.cancelBlur ) {
                delete this.cancelBlur;
                return;
            }
            clearTimeout( this.searching );
            this.close( event );
            this._change( event );
        }
不能在这里测试,但我认为这应该解决它