dlt.openHybridH5Page
Introduction
Opens an H5 page within a native MiniApp.
Parameters
Object object
Attribute | Type | Default Value | Required | Description |
---|---|---|---|---|
url | string | Yes | The URL of the H5 page to be opened. | |
success | function | No | Callback function that is executed on successful API call. | |
fail | function | No | Callback function that is executed when the API call fails. | |
complete | function | No | Callback function that is executed when the API call is complete (executed on both success and failure). |
Example Code
dlt.openHybridH5Page({
url: 'https://www.baidu.com',
});