pub unsafe extern "C" fn OH_NativeArkWeb_RunJavaScript(
webTag: *const c_char,
jsCode: *const c_char,
callback: NativeArkWeb_OnJavaScriptCallback,
)Available on crate feature
api-11 only.Expand description
Loads a piece of code and execute JS code in the context of the currently displayed page.
ยงArguments
-
webTag- The name of the web component. -
jsCode- a piece of javascript code. -
callback- Callbacks execute JavaScript script results.
Required System Capabilities: SystemCapability.Web.Webview.Core
Available since API-level: 11