From f1a81ee53e3761afb0df0e4f59486b16f65ec709 Mon Sep 17 00:00:00 2001 From: clear_addr Date: Mon, 17 Nov 2025 20:45:49 +0800 Subject: [PATCH] Modify Web Example Annotations Signed-off-by: clear_addr --- ArkWebKit/UseFrontendJSApp/entry4/src/main/cpp/hello.cpp | 2 +- ArkWebKit/UseFrontendJSApp/entry4/src/main/ets/pages/Index.ets | 2 +- ArkWebKit/UseFrontendJSApp/entry6/src/main/cpp/hello.cpp | 2 +- ArkWebKit/UseFrontendJSApp/entry6/src/main/ets/pages/Index.ets | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ArkWebKit/UseFrontendJSApp/entry4/src/main/cpp/hello.cpp b/ArkWebKit/UseFrontendJSApp/entry4/src/main/cpp/hello.cpp index eeec47447..36fd0f405 100755 --- a/ArkWebKit/UseFrontendJSApp/entry4/src/main/cpp/hello.cpp +++ b/ArkWebKit/UseFrontendJSApp/entry4/src/main/cpp/hello.cpp @@ -294,7 +294,7 @@ static napi_value NativeWebInit(napi_env env, napi_callback_info info) delete[] webTagValue; return nullptr; - // [EndtExclude parse_and_store_webtags] + // [EndExclude parse_and_store_webtags] } // [End parse_and_store_webtags] diff --git a/ArkWebKit/UseFrontendJSApp/entry4/src/main/ets/pages/Index.ets b/ArkWebKit/UseFrontendJSApp/entry4/src/main/ets/pages/Index.ets index 36abc7cee..f0bcd9fcd 100755 --- a/ArkWebKit/UseFrontendJSApp/entry4/src/main/ets/pages/Index.ets +++ b/ArkWebKit/UseFrontendJSApp/entry4/src/main/ets/pages/Index.ets @@ -42,7 +42,7 @@ struct Index { controller: webview.WebviewController = new webview.WebviewController(this.webTag); // [StartExclude customize_a_webtag_and_send_it_to_the_native_side_of_the_application] @State testObjtest: testObj = new testObj(); - // [StartExclude customize_a_webtag_and_send_it_to_the_native_side_of_the_application] + // [EndExclude customize_a_webtag_and_send_it_to_the_native_side_of_the_application] // 在aboutToAppear方法中,通过Node-API接口将webTag传入C++侧,C++侧使用webTag作为ArkWeb组件的唯一标识 aboutToAppear() { console.info('aboutToAppear'); diff --git a/ArkWebKit/UseFrontendJSApp/entry6/src/main/cpp/hello.cpp b/ArkWebKit/UseFrontendJSApp/entry6/src/main/cpp/hello.cpp index fb95b9795..44169e288 100755 --- a/ArkWebKit/UseFrontendJSApp/entry6/src/main/cpp/hello.cpp +++ b/ArkWebKit/UseFrontendJSApp/entry6/src/main/cpp/hello.cpp @@ -268,7 +268,7 @@ static napi_value NativeWebInit(napi_env env, napi_callback_info info) OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "ArkWeb", "Native Development Kit NativeWebInit end"); delete[] webTagValue; return nullptr; - // [EndtExclude parse_and_store_webtags] + // [EndExclude parse_and_store_webtags] } // [End parse_and_store_webtags] diff --git a/ArkWebKit/UseFrontendJSApp/entry6/src/main/ets/pages/Index.ets b/ArkWebKit/UseFrontendJSApp/entry6/src/main/ets/pages/Index.ets index 3ea688fbd..56c14fc1e 100755 --- a/ArkWebKit/UseFrontendJSApp/entry6/src/main/ets/pages/Index.ets +++ b/ArkWebKit/UseFrontendJSApp/entry6/src/main/ets/pages/Index.ets @@ -42,7 +42,7 @@ struct Index { controller: webview.WebviewController = new webview.WebviewController(this.webTag); // [StartExclude customize_a_webtag_and_send_it_to_the_native_side_of_the_application] @State testObjtest: testObj = new testObj(); - // [StartExclude customize_a_webtag_and_send_it_to_the_native_side_of_the_application] + // [EndExclude customize_a_webtag_and_send_it_to_the_native_side_of_the_application] // aboutToAppear中将webTag通过Node-API接口传入C++侧,作为C++侧ArkWeb组件的唯一标识 aboutToAppear() { console.info('aboutToAppear'); -- Gitee