1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| XHttp.get('/tests', { start: 0, count: 20 }, {}); XHttp .post( '/login', { username: 'test', password: '123456' }, { headers: { 'Content-Type': 'application/json' }} ).then((res) => { console.log('res', res); }) .catch((err) => { console.log('err', err); }) .finally(() => { console.log('finally TEST'); }); XHttp.get('/test', { start: 0, count: 20 }, {}, true);
XHttp.request(XHttpMethod.GET, '/tests', { start: 0, count: 20 }, {}, true);
$http.get('/tests', { start: 0, count: 20 }, {}); $http .post( '/login', { username: 'test', password: '123456' }, { headers: { 'Content-Type': 'application/json' }} ).then((res) => { console.log('res', res); }) .catch((err) => { console.log('err', err); }) .finally(() => { console.log('finally TEST'); }); $http.get('/test', { start: 0, count: 20 }, {}, true);
$http.request(XHttpMethod.GET, '/tests', { start: 0, count: 20 }, {}, true);
|