Comment passer des paramètres à un JQuery $.getJSON méthode de rappel?

 function CallMethod() {
     $.getJSON('/website/RESTfulService.svc/LiveLocation/json?{x=1,y=2}', function(data) {
         getResult(data.lat, data.lon);
     });
 }
  • essayez '/site web/RESTfulService.svc/LiveLocation/json?x=1&y=2'
InformationsquelleAutor Abdallah | 2012-03-05