- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
var promise = new Promise(function (reject, resolve) {
$.ajax({
url: url,
method: method,
contentType: 'application/json',
headers: headers,
data: JSON.stringify(data),
success: function (response) {
resolve(response);
},
error: function (error) {
reject(error);
}
});
});
Her 08.09.2015 16:51 # 0
bormand 08.09.2015 17:18 # +1
Her 08.09.2015 19:50 # 0