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">2.2 Introducing via npm
- Install
shell
npm install PhizClip-js-sdk2、Use
js
import pz from 'PhizClip-js-sdk'
pz.navigateTo({
url: '/pages/index/index'
})3. web-view component properties
| Properties | Type | Default | Required | Description | Minimum Version |
|---|---|---|---|---|---|
| src | string | - | Yes | The link to the web page. | - |
| timeout | number | 0 | No | Specifies the timeout event that will be triggered if the webpage does not receive a call to pz.complete() within the specified time. | - |
| bindmessage | eventhandler | No | No | When 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. | - |
| bindload | eventhandler | No | No | This event is triggered when the page loads successfully. e.detail = | - |
| binderror | eventhandler | No | No | Triggered when the page fails to load. e.detail = | - |
| bindevent | eventhandler | No | No | Receive data from the web page via JSSDK. | - |
| bindtimeout | eventhandler | No | No | Triggered only when timeout is configured, when the page times out, and when pz.complete is not called. | - |