Javascript this.source不是一个函数。jQueryUI出现错误

Javascript this.source不是一个函数。jQueryUI出现错误,javascript,jquery,ajax,jquery-ui,Javascript,Jquery,Ajax,Jquery Ui,jQuery ui在尝试使用自动完成方法时引发错误 jquery-ui.min.js:8 Uncaught TypeError: this.source is not a function at t.<computed>.<computed>._search (jquery-ui.min.js:8) at t.<computed>.<computed>._search (jquery-ui.min.js:6) at t.&l

jQuery ui在尝试使用自动完成方法时引发错误

jquery-ui.min.js:8 Uncaught TypeError: this.source is not a function
    at t.<computed>.<computed>._search (jquery-ui.min.js:8)
    at t.<computed>.<computed>._search (jquery-ui.min.js:6)
    at t.<computed>.<computed>.search (jquery-ui.min.js:8)
    at t.<computed>.<computed>.search (jquery-ui.min.js:6)
    at t.<computed>.<computed>.<anonymous> (jquery-ui.min.js:8)
    at i (jquery-ui.min.js:6)
op和business只是API工作所需的参数。 API工作正常,调用没有问题。 该调用返回一个json业务字符串(因此为json.parse) 在解析的数组上调用map只返回企业的名称,因为这是我希望在autocomplete中显示的名称

搜索表单是一种文本输入

<input type='text' id='search-form'/>

我很确定这是jQuery的问题,而不是我的代码。 使用: cdn


任何帮助都将不胜感激

应该是来源而不是来源


应该是来源而不是来源吗?我欠你我的命。非常感谢。
<input type='text' id='search-form'/>
$(function() {
    var availableTags = [
      "Rock",
      "Rap",
      "Trova",
      "Blues",
      "Country",
      "Folk",
      "Jass",
      "POP",
      "Electronic"
    ];
    $( "#tags" ).autocomplete({
      source: availableTags
    });
  });