@fastweb/sailer-utils
2.0.4 • Public • Published
模板引擎
抹平不同平台不同协议下的差异的常用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 = "/")
Readme
Keywords
nonePackage Sidebar
Install
npm i @fastweb/sailer-utils
Weekly Downloads