Package Exports
- kit-request
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kit-request) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
kit-request
封装数据请求,fetch 底层使用 isomorphic-fetch,xhr 底层使用 axios
用法
// use fetch(isomorphic-fetch)
import fetch from 'kit-request/fetch'
// use xhr(axios)
import xhr from 'kit-request/xhr'
// use request(Not completed)
import Request from 'kit-fetch'
const request = new Request({
// config...
})