【发布时间】:2018-05-06 16:37:28
【问题描述】:
this.getFullAddress(id).done(function(data) {
// need to have both the response (data) and the id
});
getFullAddress(id) {
var response = $.ajax({
url: 'http://whatever.com'
}); // modify this (add id)
return response;
}
有谁知道如何做到这一点?
【问题讨论】:
标签: ajax jquery-deferred