Load the OpenHarmony web page
Load online web page
The use of Web components is very simple. You only need to create a Web component in the ArkTS file in the Page directory and pass in two parameters. Among them, src specifies the referenced web page path, and controller is the controller of the component. The Web component is bound through the controller to control the Web component.
Step 1: Create a new Page
Step 2: Import the module
import web_webview from '@ohos.web.webview'
Step Three: Use the Controller
controller: web_webview.WebviewController =