未验证 提交 2061087b 编写于 作者: O openharmony_ci 提交者: Gitee

!15632 Increase the relationship between two web docs(monthly)

Merge pull request !15632 from 李想/monthly_20221018
......@@ -2,7 +2,7 @@
# @ohos.web.webview (Webview)
提供web控制能力。
@ohos.web.webview提供web控制能力,[web](../arkui-ts/ts-basic-components-web.md)组件提供具有网页显示能力。
> **说明:**
>
......@@ -232,15 +232,15 @@ static initializeWebEngine(): void
```ts
// xxx.ts
import Ability from '@ohos.application.Ability'
import web_webview from '@ohos.web.webview'
import UIAbility from '@ohos.app.ability.UIAbility';
import web_webview from '@ohos.web.webview';
export default class MainAbility extends Ability {
export default class EntryAbility extends UIAbility {
onCreate(want, launchParam) {
console.log("MainAbility onCreate")
console.log("EntryAbility onCreate")
web_webview.WebviewController.initializeWebEngine()
globalThis.abilityWant = want
console.log("MainAbility onCreate done")
console.log("EntryAbility onCreate done")
}
}
```
......
# Web
提供具有网页显示能力的Web组件。
提供具有网页显示能力的Web组件[@ohos.web.webview](../apis/js-apis-webview.md)提供web控制能力
> **说明:**
>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册