1.1.0 • Published 7 years ago
@fastweb/sailer-utils_common v1.1.0
模板引擎
抹平不同平台不同协议下的差异的常用utils
安装
ems:
cnpm i @fastweb/sailer-utils -S
common:
cnpm i @fastweb/sailer-utils_common -S
属性
- inAPP
- inGZZ
- inWechat
- inAndroid
- inIOS
方法
- getHost(targetStr)
- getTargetStr(url)
- gotoHybridUrl(targetStr)
- redirect(url,cb)
- open(url,cb)
- getCommonApi(apiUrl, port, rootUrl = "/")
1.1.0
7 years ago