3
我想同时它获取XML文件到这个CSS应用到搜索框。目前加载该文件需要大约3秒钟的时间。jQuery用户界面自动完成 - 的.ui-自动完成装载
我在autocomplete.js看到文件这两个函数:
_search: function(value) {
this.term = this.element
.addClass("ui-autocomplete-loading")
// always save the actual value, not the one passed as an argument
.val();
this.source({ term: value }, this.response);
},
_response: function(content) {
if (content.length) {
content = this._normalize(content);
this._suggest(content);
this._trigger("open");
} else {
this.close();
}
this.element.removeClass("ui-autocomplete-loading");
},
我只是不知道如何以及在何处触发,在我的代码。
感谢