@yujin321/request
v0.4.0
Published
request是基于Promise的网络请求库,包含请求配置、拦截器等功能。
Downloads
2
Maintainers
Readme
Request
Introduce
基于Promise的网络请求库,包含请求配置、拦截器等功能。
Start
import request from "request"
request({
method: "get",
url: '/api/json'
}).then((res)=> {
console.log(res);
}).catch(err=> {
console.error(err);
})
Development
develop
npm run dev
debugger
npm run examples
build
npm run build