Home
last modified time | relevance | path

Searched refs:runJavaScript (Results 1 – 25 of 34) sorted by relevance

12

/ohos5.0/docs/zh-cn/application-dev/web/
H A Dweb-in-app-frontend-page-function-invoking.md3 应用侧可以通过[runJavaScript()](../reference/apis-arkweb/js-apis-webview.md#runjavascript)和[runJavaScriptE…
5 [runJavaScript()](../reference/apis-arkweb/js-apis-webview.md#runjavascript)和[runJavaScriptExt()](.…
7 在下面的示例中,点击应用侧的“runJavaScript”按钮时,来触发前端页面的htmlTest()方法。
17 <h1 id="text">这是一个测试信息,默认字体为黑色,调用runJavaScript方法后字体为绿色,调用runJavaScriptCodePassed方法后字体为红色</h1>
57 Button('runJavaScript')
60 this.webviewController.runJavaScript('htmlTest(param)');
64 // 传递runJavaScript侧代码方法。
65 …this.webviewController.runJavaScript(`function changeColor(){document.getElementById('text').style…
H A Darkweb-ndk-jsbridge.md127 通过[runJavaScript](../reference/apis-arkweb/_ark_web___controller_a_p_i.md#runjavascript)调用前端页面函数。
135 controller->runJavaScript(webTagValue, &object);
258 testNapi.runJavaScript(this.webTag, "runJSRetStr(\"" + "hello" + "\")");
280 export const runJavaScript: (webName: string, jsCode: string) => void;
375 controller->runJavaScript(webTag, &object);
537 controller->runJavaScript(webTagValue, &object);
545 … {"runJavaScript", nullptr, RunJavaScript, nullptr, nullptr, nullptr, napi_default, nullptr},
H A Darkweb-ndk-page-data-channel.md356 this.controller.runJavaScript("for(var i = 0; i < 2000; i++) postStringToApp()")
365 this.controller.runJavaScript("postBufferToApp()")
374 this.controller.runJavaScript("postNumberToApp()")
386 this.controller.runJavaScript("postJsonToApp()")
395 this.controller.runJavaScript("postArrayStringToApp()")
404 this.controller.runJavaScript("postObjectToApp()")
/ohos5.0/docs/en/application-dev/web/
H A Dweb-in-app-frontend-page-function-invoking.md3 You can call [runJavaScript()](../reference/apis-arkweb/js-apis-webview.md#runjavascript) and [runJ…
5 The parameter types of [runJavaScript()](../reference/apis-arkweb/js-apis-webview.md#runjavascript)…
7 In the following example, when a user clicks the **runJavaScript** button on the application, the *…
17 …information. The font color is black by default. It turns green after runJavaScript() is called an…
57 Button('runJavaScript')
60 this.webviewController.runJavaScript('htmlTest(param)');
64 // Pass in code for runJavaScript.
65 …this.webviewController.runJavaScript(`function changeColor(){document.getElementById('text').style…
H A Darkweb-ndk-jsbridge.md127 Use [runJavaScript](../reference/apis-arkweb/_ark_web___controller_a_p_i.md#runjavascript) to invok…
135 controller->runJavaScript(webTagValue, &object);
258 testNapi.runJavaScript(this.webTag, "runJSRetStr(\"" + "hello" + "\")");
280 export const runJavaScript: (webName: string, jsCode: string) => void;
375 controller->runJavaScript(webTag, &object);
537 controller->runJavaScript(webTagValue, &object);
545 … {"runJavaScript", nullptr, RunJavaScript, nullptr, nullptr, nullptr, napi_default, nullptr},
H A Darkweb-ndk-page-data-channel.md356 this.controller.runJavaScript("for(var i = 0; i < 2000; i++) postStringToApp()")
365 this.controller.runJavaScript("postBufferToApp()")
374 this.controller.runJavaScript("postNumberToApp()")
386 this.controller.runJavaScript("postJsonToApp()")
395 this.controller.runJavaScript("postArrayStringToApp()")
404 this.controller.runJavaScript("postObjectToApp()")
/ohos5.0/docs/zh-cn/application-dev/faqs/
H A Dfaqs-arkui-web.md12 对javaScriptProxy和runJavaScript封装,实现JSBridge通信方案。适用于H5调用原生侧函数。使用Web组件javaScriptProxy将原生侧接口注入到H5的wind…
49 - 在initJSBridge方法中,通过webviewControll.runJavaScript()将JSBridge初始化脚本注入H5执行。当H5调用时,生成window.callID标识回调…
57 this.controller.runJavaScript(`
73 …应接口去调用。调用结束后通过this.callback()方法将调用结果返回H5。callback方法中使用webviewControll.runJavaScript()调用H5的JSBridge…
90 // 通过runJavaScript调用JSBridgeCallback执行回调
92 this.controller.runJavaScript(`__JSBridgeCallback__("${id}", ${JSON.stringify(data)})`);
168 通过WebviewController中runJavaScript方法异步执行JavaScript脚本,并通过回调方式获取执行结果。
171 > runJavaScript需要在loadUrl完成后,比如onPageEnd中调用。
175 [runJavaScript](../reference/apis-arkweb/js-apis-webview.md#runjavascript)
394 1. Native->H5使用runJavaScript接口注入JS进行通信,H5->Native使用registerJavaScriptProy接口。先将Native方法注册至H5侧,H5再通过调…
[all …]
/ohos5.0/docs/en/application-dev/faqs/
H A Dfaqs-arkui-web.md12runJavaScript** to implement the JSBridge communication scheme. This method is applicable to the s…
57 this.controller.runJavaScript(`
73 …to return the result to HTML5. In the callback, use **webviewControll.runJavaScript()** to call **…
90 // Use runJavaScript to call JSBridgeCallback to execute the callback.
92 this.controller.runJavaScript(`__JSBridgeCallback__("${id}", ${JSON.stringify(data)})`);
168 Use the **runJavaScript** API in **WebviewController** to asynchronously execute JavaScript scripts…
171 > **runJavaScript** can be invoked only after **loadUrl** is executed. For example, it can be invok…
175 [runJavaScript](../reference/apis-arkweb/js-apis-webview.md#runjavascript)
394 1. For communication from the native side to the HTML5 side, use the **runJavaScript** API. For com…
395 2. Both **runJavaScript** and **registerJavaScriptProy** are exposed in the C API on the NDK side.
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/
H A D_ark_web___controller_a_p_i.md21 | void(\* [runJavaScript](#runjavascript) )(const char \*webTag, const [ArkWeb_JavaScriptObject](_a…
153 ### runJavaScript subsection
156 void(* ArkWeb_ControllerAPI::runJavaScript) (const char *webTag, const ArkWeb_JavaScriptObject *jav…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta2/
H A Djs-apidiff-web.md18 …r;<br>方法or属性:runJavaScript(script: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:W…
/ohos5.0/docs/en/application-dev/reference/apis-arkweb/
H A D_ark_web___controller_a_p_i.md21 | void(\* [runJavaScript](#runjavascript) )(const char \*webTag, const [ArkWeb_JavaScriptObject](_a…
153 ### runJavaScript subsection
156 void(* ArkWeb_ControllerAPI::runJavaScript) (const char *webTag, const ArkWeb_JavaScriptObject *jav…
/ohos5.0/docs/en/release-notes/api-diff/v4.0-beta2/
H A Djs-apidiff-web.md18runJavaScript(script: string, callback: AsyncCallback\<string>): void;<br>Old version information:…
/ohos5.0/base/web/webview/interfaces/native/
H A Darkweb_type.h177 void (*runJavaScript)(const char* webTag, const ArkWeb_JavaScriptObject* javascriptObject); member
H A Darkweb_interface.cpp31 DO(runJavaScript, OH_ArkWeb_RunJavaScript); \
/ohos5.0/docs/zh-cn/application-dev/performance/
H A Dperformance-web-import.md603 Button('runJavaScript')
607 this.webviewController.runJavaScript('htmlTest(param)');
611 // 传递runJavaScript侧代码方法。
612 …this.webviewController.runJavaScript(`function changeColor(){document.getElementById('text').style…
626 <h1 id="text">这是一个测试信息,默认字体为黑色,调用runJavaScript方法后字体为绿色,调用runJavaScriptCodePassed方法后字体为红色</h1>
648 点击runJavaScript按钮后触发h5页面htmlTest方法,使得页面内容变更为当前时间戳,如下图所示:
696 testNapi.runJavaScript(this.webTag, "runJSRetStr(\"" + "hello" + "\")");
745 controller->runJavaScript(webTagValue, &object);
753 {"runJavaScript", nullptr, RunJavaScript, nullptr, nullptr, nullptr, napi_default, nullptr},
H A Dwebview-render-app-components.md274 this.browserTabController.runJavaScript(
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/
H A Djs-apidiff-web.md60 |新增|NA|模块名: ohos.web.webview<br>类名: WebviewController<br>方法名 or 属性名:runJavaScript|@ohos.web.webview…
61 |新增|NA|模块名: ohos.web.webview<br>类名: WebviewController<br>方法名 or 属性名:runJavaScript|@ohos.web.webview…
H A Djs-apidiff-arkui.md135 |废弃版本有变化|方法名 or 属性名:runJavaScript<br>废弃版本:N/A|方法名 or 属性名:runJavaScript<br>废弃版本:9<br>代替接口:ohos.web.w…
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202210/
H A Djs-apidiff-web.md78 |新增|NA|模块名: ohos.web.webview<br>类名: WebviewController<br>方法名 or 属性名:runJavaScript|@ohos.web.webview…
79 |新增|NA|模块名: ohos.web.webview<br>类名: WebviewController<br>方法名 or 属性名:runJavaScript|@ohos.web.webview…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/
H A Djs-apidiff-web.md99 |新增|NA|类名:WebviewController;<br>方法or属性:runJavaScript(script: string): Promise\<string>;|@ohos.web.w…
100 |新增|NA|类名:WebviewController;<br>方法or属性:runJavaScript(script: string, callback: AsyncCallback\<strin…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta4/
H A Djs-apidiff-web.md60 …webview<br>Class name: WebviewController<br>Method or attribute name: runJavaScript|@ohos.web.webv…
61 …webview<br>Class name: WebviewController<br>Method or attribute name: runJavaScript|@ohos.web.webv…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/
H A Djs-apidiff-web.md64 …r;<br>方法or属性:runJavaScript(script: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:W…
/ohos5.0/docs/en/release-notes/api-diff/monthly-202210/
H A Djs-apidiff-web.md78 …webview<br>Class name: WebviewController<br>Method or attribute name: runJavaScript|@ohos.web.webv…
79 …webview<br>Class name: WebviewController<br>Method or attribute name: runJavaScript|@ohos.web.webv…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/
H A Djs-apidiff-web.md99 |Added|NA|Class name: WebviewController;<br>Method or attribute name: runJavaScript(script: string)…
100 |Added|NA|Class name: WebviewController;<br>Method or attribute name: runJavaScript(script: string,…
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/Component/
H A DwebTitleBar.ets289 …this.browser.webControllerArray[ item.key ].controller.runJavaScript({ script : 'adapterDevice()' …

12