0
我運行的查詢,並得到以下JSON回:在Coldfusion中返回json時如何更改標題?
{
"COLUMNS":["ID","TAGNAME"],
"DATA":[[11,"gard"],[61,"garden"]]
}
問題是我使用的插件(在這裏http://www.devbridge.com/projects/autocomplete/jquery/#howto找到),只有在下列格式接收數據:
{
query:'...',
suggestions:['...','...'],
data:['...','...']
}
所以我每次調用數據時出現此錯誤:
a.suggestions is undefined
[Break on this error] (function(d){function l(b,a,c){a="("+c...h-a[a.length-1].length)+b}}})(jQuery);