a fetch polyfill
npm install ywl-fetchnpm install ywl-fetch --save;
{
"presets": [
[
"env"
],
"stage-2"
],
"plugins": [
"transform-runtime"
]
}
`
`javascript
import {fetch,Response,Request} from 'ywl-fetch'
fetch('./mock/a.json')
.then(function (response) {
return response.json()
}).then(json => {
console.info(json)
})
`Script
`html
``=======
a fetch polyfill,support interceptors
>>>>>>> parent of 40b0a91... Update README.md