JSPM

kit-request

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q29044F
  • License MIT

定制处理数据请求,fetch使用 isomorphic-fetch,xhr 使用 axios

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...
})