首页  >  问答  >  正文

javascript - autocomplete ajax怎么配置,求教

autocomplete ajax怎么配置,求教

ringa_leeringa_lee2637 天前1006

全部回复(1)我来回复

  • 大家讲道理

    大家讲道理2017-07-05 11:09:03

    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...

    回复
    0
  • 取消回复