import { webview } from '@kit.ArkWeb';
@Component
export struct CourseLearning {
private webviewController: webview.WebviewController = new webview.WebviewController();
build() {
Column() {
// Web({ src: $rawfile('course_learning/index.html'), controller: this.webviewController })
// .domStorageAccess(true)
Web({src:"https://developer.huawei.com/consumer/cn/codelabsPortal/carddetails/tutorials_Next-ArkwebPageAdaptation", controller: this.webviewController })
.domStorageAccess(true)
}
}
}
HarmonyOS加载web页面
最新推荐文章于 2024-09-05 17:14:03 发布