WEB应用开发-“iot-gateway”

更新时间:2018-02-01 21:17:58

简介

平台Web应用、Web插件,服务请求的库。

安装

bnpm install @bone/iot-gateway --save

使用

import IotGateway, {axios} from '@bone/iot-gateway';

IotGateway
    .post({url, apiVer, params})
    .then(res => console.log(res))
    .catch(res => console.log(res))

API

参数说明

参数 说明 类型 必要 默认值
url 服务API String true -
apiVer 服务版本号 String true -
params 请求入参 Object false -

备注:可导出axios网络库,更多请参考 axios

results matching ""

    No results matching ""