无标题文章

2017-04-01  本文已影响0人  三彣禹

export function del(path, body) {
return new Promise((resolve, reject) => {
let xhr = _xhr('DELETE', path, resolve, reject);
xhr.send(JSON.stringify(body));
});
}

export function patch(path, body) {
return new Promise((resolve, reject) => {
let xhr = _xhr('PATCH', path, resolve, reject);
xhr.send(JSON.stringify(body));
});
}

上一篇下一篇

猜你喜欢

热点阅读