linkdood-web-sdk
v1.0.24
Published
A thrift base SDK for web by linkdood.
Downloads
51
Readme
LinkDood-Web-SDK使用说明
一、引入方式
1.模块化引入
npm install linkdood-web-sdk
2.文件引入
直接拷贝dist目录下linkdoodWebSDK.min.js至项目
<script src="dist/linkdoodWebSDK.min.js"></script>
二、初始化SDK
import LinkdoodWebSDK from 'linkdood-web-sdk'
let webSDK = new LinkdoodWebSDK();
三、示例调用
let params = {
user: '18888888888',
pwd:"123456",
userType: 1
}
webSDK.login(params).then(res => console.log(res));
具体接口参考docs文档