且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jquery 自动完成 this.source 不是函数错误

更新时间:2022-12-08 17:54:28

答案是自动完成的第一个参数应该是一个包含源"属性的对象.这有效

Answer is that the first parameter of the autocomplete should be an object containing the "source" property. This works

var fakedata = ['test1','test2','test3','test4','ietsanders'];
$("#omschrijving").autocomplete({source:fakedata});