0.0.2 • Published 6 years ago

ulife-jssdk v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Usage

# 使用 npm 安装
$ npm install ulife-jssdk

# OR 使用 yarn 安装
$ yarn add ulife-jssdk

# OR 安装了 cnpm,使用 cnpm 安装
$ cnpm install ulife-jssdk

ulife-jssdk Config

ulifeConfig info:

{
    "appId": "appid",
    "appSecret": "app_secret",
    "debug": false
  
}

Browser Side Usage

const ulifeJSSDK = require('ulife-jssdk');

// ES6 import
import ulifeJSSDK from 'ulife-jssdk';
const config = { 
    debug: false // 是否开启debug模式,默认不开启
}

const ulife = new ulifeJSSDK(config)
 
// or if you just add the script tag, and access "ulifeJSSDK" from window, e.g:
const ulife = new window.ulifeJSSDK(config)

Docs

https://app.h5.ihaozhuo.com/ulife/index.html

0.0.2

6 years ago

0.0.1

6 years ago