Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zzc-gopage

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zzc-gopage

原生跳转app协议

  • 1.4.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

app协议唤醒原生功能

使用方式
znpm install zzc-gopage -S-D

import goPage from 'zzc-gopage';
<script src='//global.zuzuche.com/static/goPage/dist/1.0.4/goPage.js'></script>
goPage跳转原生页面

该函数只接受一个对象作为参数

属性说明类型默认值
url跳去h5的链接string''
type跳去那个原生页面的标识string''
called调用起原生页面成功后的回调function
callback原生页面完成相关操作后的回调函数function
searchStr传递给原生协议的路径后续string''

called 和 callback都会返回原生返回的相关信息,如果原生返回的是字符串,那么会尝试将他转为json。

FAQs

Package last updated on 24 Jan 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc