【发布时间】:2012-08-15 09:35:42
【问题描述】:
来自: andrew whittakers example showing result numbers in a custom jquery autocomplete implementation
_response: function(contents){
$.ui.autocomplete.prototype._response.apply(this, arguments);
$(this.element).trigger("autocompletesearchcomplete", [contents]);
}
为什么是[contents] 而不是contents?
【问题讨论】:
-
[] 是数组,[contents] 是一个元素的数组
标签: javascript jquery syntax widget