@aligov/mobile-request

0.1.3 • Public • Published

@aligov/mobile-request

Install

$ npm install @aligov/mobile-request --save

Usage

import Button from '@aligov/mobile-request';

API

name type default describe
url String 请求地址
method String GET 可选值: GET/POST/PUT/DELETE/PATCH/HEAD 请求地址
data String {} 请求参数
headers Bool Content-Type': 'application/json' 请求头
timeout Number 20000(ms) 超时设置
dataType String json 可选值:json/text 返回数据类型

Example

import request from '@aligov/mobile-request'

request({
  url: '/xx/xx',
  method: 'POST',
  data: {}
})

Readme

Keywords

Package Sidebar

Install

npm i @aligov/mobile-request

Weekly Downloads

5

Version

0.1.3

License

MIT

Unpacked Size

53 kB

Total Files

10

Last publish

Collaborators

  • wanyi.css
  • jasoncapricorn
  • qingkaili
  • huguoxin
  • shenyu.wsy
  • liunian
  • tao1991123
  • itrip
  • xiazhiqiang
  • mo.zhou
  • guoliang.hgl
  • daip
  • baizhao