🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@21cnfe/ok

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@21cnfe/ok

基于天翼云盘APP的JS Bridge封装,提供更多原生能力。

npmnpm
Version
1.0.1
Version published
Weekly downloads
26
136.36%
Maintainers
2
Weekly downloads
 
Created
Source

天翼云盘小程序 JSSDK

基于天翼云盘APP的JS Bridge封装,提供Native层的API调用能力,API文档见: H5 小程序平台·文档中心

Usage

在项目中安装依赖

npm istall @21cnfe/ok --save

在项目入口文件中引入,如VUE项目的 main.js

import '@21cnfe/ok'

API调用示例,如 canIUse

ok.canIUse(apiName)
  .then(res => {
    console.log('当前API是否可用', res.data.result)
  })

FAQs

Package last updated on 11 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts