搜尋

首頁  >  問答  >  主體

javascript - autocomplete ajax怎麼配置,求教

autocomplete ajax怎麼配置,求教

ringa_leeringa_lee2814 天前1156

全部回覆(1)我來回復

  • 大家讲道理

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

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    <code>var options = {

        serviceUrl: "",

        type: "",

        dataType: "",

        deferRequestBy: "",

        minChars: ,

        width: "",

        onSearchStart: function(query) {},

        onSearchError: function() {},

        transformResult: function(response) {},

        onSelect: function(suggestion) {},

        onSearchComplete: function() {}

    };

     

    $("#id").autocomplete(options);</code>

    具體可以參數可以看看 https://github.com/lonelyplan...

    回覆
    0
  • 取消回覆