README
@hfe/wx-fetch
事例
fetch(url, {
body,
method,
headers: {
"content-type": "application/json"
}
}).then(response => {
const { data, headers, status, statusText } = response;
});
差异:
response.json()
response 不需要 - 小程序中没有 Response对象
- 性能