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));
});
}
网友评论