2016-07-22 8 views

Antwort

1

Zuerst müssen Sie 'format = jsonfm' in 'format = json' in Ihrer Abfragezeichenfolge ändern. Dann können Sie Daten mit jQuery zum Beispiel erhalten:

$.ajax({ 
    url: "https://en.wikipedia.org/w/api.php?action=opensearch&format=json&search=Robert&limit=6&suggest=1&redirects=return&callback=ttt", 
    jsonp: "callback", 
    dataType: "jsonp", 
    success: function(response) { 
     console.log(response); 
    } 
}); 

Und Sie werden Ihre Array von Arrays