简体中文
web-view元素对象
| Web | 微信小程序 | Android | iOS | iOS uni-app x UTS 插件 | HarmonyOS | HarmonyOS uni-app x UTS 插件 |
|---|---|---|---|---|---|---|
| 4.0 | x | 4.0 | 4.11 | 4.25 | 4.61 | 4.61 |
后退
| Web | 微信小程序 | Android | iOS | iOS uni-app x UTS 插件 | HarmonyOS |
|---|---|---|---|---|---|
| 4.0 | x | 4.0 | 4.11 | 4.25 | - |
前进
| Web | 微信小程序 | Android | iOS | iOS uni-app x UTS 插件 | HarmonyOS |
|---|---|---|---|---|---|
| 4.0 | x | 4.0 | 4.11 | 4.25 | - |
重新加载
| Web | 微信小程序 | Android | iOS | iOS uni-app x UTS 插件 | HarmonyOS |
|---|---|---|---|---|---|
| 4.0 | x | 4.0 | 4.11 | 4.25 | - |
停止加载
| Web | 微信小程序 | Android | iOS | iOS uni-app x UTS 插件 | HarmonyOS |
|---|---|---|---|---|---|
| 4.0 | x | 4.0 | 4.11 | 4.25 | - |
原生和WebView通信(执行JS脚本)
| Web | 微信小程序 | Android | iOS | iOS uni-app x UTS 插件 | HarmonyOS |
|---|---|---|---|---|---|
| 4.0 | x | 4.0 | 4.11 | 4.25 | - |
| 名称 | 类型 | 必填 | 默认值 | 兼容性 | 描述 |
|---|---|---|---|---|---|
| js | string | 是 | - |
获取webview内容高度
| Web | 微信小程序 | Android | iOS | iOS uni-app x UTS 插件 | HarmonyOS |
|---|---|---|---|---|---|
| x | x | 4.63 | 4.63 | 4.63 | - |
| 类型 |
|---|
| number |
加载页面内容
| Web | 微信小程序 | Android | iOS | iOS uni-app x UTS 插件 | HarmonyOS |
|---|---|---|---|---|---|
| x | x | 4.65 | 4.65 | 4.65 | - |
| 名称 | 类型 | 必填 | 默认值 | 兼容性 | 描述 | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options | UniWebViewElementLoadDataOptions | 是 | - | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||