1.0.7 • Published 5 years ago

@jeebey/wx-request v1.0.7

Weekly downloads
8
License
ISC
Repository
-
Last release
5 years ago

介绍

将wx.request转成Promise方式

安装

npm i @jeebey/wx-request

使用说明

const $httpclient = require('@jeebey/wx-request')
$http = $httpclient.create({host:''})
$http.post(url,{}).then(res=>{})
$http.header({'key':'val'}) //永久覆盖
$http.body(url,{},{'head':'aaa'}) //只限当次请求
$http.cache().post() // 数据可以缓存 
$http.abort().post() // 终止上次请求
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago