2011-12-03 1 views

答えて

0

私はそれは、プラグインのソースコードを見ることはできません怖い:

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の問題は何ですか?なぜそれが解決できないのかわかりません。

関連する問題