gurobot-wx-npm

1.0.0 • Public • Published

微信小程序 npm

HTTP

属性 类型 必填 说明
url string 开发者服务器接口地址
method string HTTP 请求方法
header Object 设置请求的 header
data Object 请求的参数
timeout number 超时时间,单位为毫秒。默认值为 50000
filePath string 要上传文件资源的路径 (本地路径)
name string 文件对应的 key
formData Object HTTP 请求中其他额外的 form data
showLoad boolean 是否显示加载中状态
  • 请求示例

      HTTP.GET({
          path: '',
          data: {},
      }, { showLoad: false });

Readme

Keywords

none

Package Sidebar

Install

npm i gurobot-wx-npm

Weekly Downloads

4

Version

1.0.0

License

ISC

Unpacked Size

14.4 kB

Total Files

17

Last publish

Collaborators

  • chenjianzai