Skip to content

JSSDK

1. Introduction to JSSDK

JSSDK is a web development toolkit provided by PhizClip for web developers.

By using JSSDK, web developers can use PhizClip to efficiently use the capabilities of mobile systems such as photo, map selection, voice, location, etc., while directly using the unique capabilities of PhizClip PhizClip to provide users with a better web experience.

Please configure the domain address you need to access in "Development Management-Domain Settings" before using the JSSDK.

2. How to use

2.1 Introduction of script tags in web pages

js
<script src="path/to/jssdk.min.js">

JSSDK 1.4.20

JSSDK 1.4.20(ESM)

2.2 Introducing via npm

  1. Install
shell
npm install PhizClip-js-sdk

2、Use

js
import pz from 'PhizClip-js-sdk'


pz.navigateTo({
  url: '/pages/index/index'
})

3. web-view component properties

PropertiesTypeDefaultRequiredDescriptionMinimum Version
srcstring-YesThe link to the web page.-
timeoutnumber0NoSpecifies the timeout event that will be triggered if the webpage does not receive a call to pz.complete() within the specified time.-
bindmessageeventhandlerNoNoWhen a web page postsMessage to PhizClip, it will be triggered and receive a message at a specific time (rewind, destruction, sharing). e.detail = { data }, data is an array of multiple postMessage parameters.-
bindloadeventhandlerNoNoThis event is triggered when the page loads successfully. e.detail =-
binderroreventhandlerNoNoTriggered when the page fails to load. e.detail =-
bindeventeventhandlerNoNoReceive data from the web page via JSSDK.-
bindtimeouteventhandlerNoNoTriggered only when timeout is configured, when the page times out, and when pz.complete is not called.-