@fastweb/sailer-utils

2.0.4 • Public • Published

模板引擎 Build Status npm


抹平不同平台不同协议下的差异的常用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

none

Package Sidebar

Install

npm i @fastweb/sailer-utils

Weekly Downloads

3

Version

2.0.4

License

ISC

Last publish

Collaborators

  • yuer
  • tellmepz
  • lkfu
  • hughgr
  • yuhonyon
  • deandai