https://github.com/anthinkingcoder/fetch-polyfill
a fetch polyfill(es6 style)
https://github.com/anthinkingcoder/fetch-polyfill
Last synced: 8 months ago
JSON representation
a fetch polyfill(es6 style)
- Host: GitHub
- URL: https://github.com/anthinkingcoder/fetch-polyfill
- Owner: anthinkingcoder
- Created: 2018-07-30T09:34:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-05T12:09:34.000Z (over 7 years ago)
- Last Synced: 2025-02-06T20:44:31.850Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 559 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fetch-polyfill
> a fetch polyfill(es6 style)
## Installation
* `npm install ywl-fetch --save`;
## Usage
```javascript
import 'ywl-fetch'
fetch('./mock/a.json')
.then(function (response) {
return response.json()
}).then(json => {
console.info(json)
})
```
## Script
```html
fetch('./mock/a.json')
.then(function (response) {
return response.json()
}).then(json => {
console.info(json)
})
```
## Support
> ie10+ or chrome etc.