autocomplete ajax怎么配置,求教

autocomplete ajax怎么配置,求教

阅读 3.1k
1 个回答
var options = {
    serviceUrl: "",
    type: "",
    dataType: "",
    deferRequestBy: "",
    minChars: ,
    width: "",
    onSearchStart: function(query) {},
    onSearchError: function() {},
    transformResult: function(response) {},
    onSelect: function(suggestion) {},
    onSearchComplete: function() {}
};

$("#id").autocomplete(options);

具体可以参数可以看看 https://github.com/lonelyplan...

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题