diff --git a/ArkWebKit/UseFrontendJSApp/entry4/src/main/cpp/hello.cpp b/ArkWebKit/UseFrontendJSApp/entry4/src/main/cpp/hello.cpp index eeec474478433fa2dbbfb4a827b75149f53e5723..36fd0f4059a7810f55e1f62a54e5677ce28cc622 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 36abc7cee9a15e2463f3dd62d682dbb3e0c5160b..f0bcd9fcd3fe42d676846dfed6978c131925b7af 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 fb95b9795a53eb4c6027b7bcf3cf72d672aa6183..44169e288c3b6df52ccba5b730318362ef0f3d84 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 3ea688fbdf5162845f7863067d0dd6fb99a49576..56c14fc1e422199c984a8fbf3b05b19f71800ce2 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');