Merge branch 'master' of github.com:bytedo/fetch into master

master
宇天 2020-10-21 15:34:28 +08:00
commit 35deb769d6
1 changed files with 8 additions and 1 deletions

View File

@ -2,6 +2,13 @@
> 统一走fetch的风格。内置参数处理, 支持多实例。
## 浏览器兼容性
![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |
--- | --- | --- | --- | --- | --- |
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 10+ ✔ |
### 版本
> 共有2个版本, 一个传统版本, 基于`XMLHttpRequest`; 另一个是新一代版本, 基于`window.fetch()`。
@ -66,4 +73,4 @@ fetch.__INIT__ = {headers: {token: 123456}}
2. fetch.create([base_url][, options<Object>])
> 创建一个新的fetch实例
> 创建一个新的fetch实例