English
openWebview
About 64 wordsLess than 1 minute
2025-04-28
This method allows you to open a new page.
FxUI.page.openWebview(Object)Parameters
| Parameter | Description | Type | Optional Values | Default |
|---|---|---|---|---|
| url | Target URL | string | — | — |
Code Example
This method returns a Promise object, as shown below:
import FxUI from 'fxui-mobile';
FxUI.page.openWebview({
url: 'https://a9.fspage.com/FSR/uipaas/test/thirdH5Page.html'
}).then((res) => {
console.log('openWebview success callback', res)
}).catch((err) => {
console.log('openWebview failure callback', err)
})