1.1.2 • Published 9 months ago
@maxtan/fetch v1.1.2
基于ofetch的fetch工具
安装
npm install @maxtan/fetch
或者使用 pnpm
pnpm add @maxtan/fetch
引用
import { Http } from "@maxtan/fetch"
const http = new Http().create();
http.get('https://baidu.com').then(res => {
console.log(res);
});
http.post('https://baidu.com').then(res => {
console.log(res);
});