-1
私はdevbridgeのjquery autocompleteを使用しています。私はjsonとcommaのために、私の出力データに問題があります.jsonの代わりにxmlまたはプレーンな出力テキストを使用することは可能ですか?devbridge autocomplete APIでxmlまたはjsonではなくtextを使用できますか?
私はdevbridgeのjquery autocompleteを使用しています。私はjsonとcommaのために、私の出力データに問題があります.jsonの代わりにxmlまたはプレーンな出力テキストを使用することは可能ですか?devbridge autocomplete APIでxmlまたはjsonではなくtextを使用できますか?
私はそれは、プラグインのソースコードを見ることはできません怖い:
processResponse: function(text) {
var response;
try {
response = eval('(' + text + ')');
} catch (err) { return; }
if (!$.isArray(response.data)) { response.data = []; }
if(!this.options.noCache){
this.cachedResponse[response.query] = response;
if (response.suggestions.length === 0) { this.badQueries.push(response.query); }
}
if (response.query === this.getQuery(this.currentValue)) {
this.suggestions = response.suggestions;
this.data = response.data;
this.suggest();
}
},
それは、XMLやプレーンテキストの解析を行いませんので.eval()
の使用は、JavaScript式/引数を意味します。
jsonの問題は何ですか?なぜそれが解決できないのかわかりません。