Home
last modified time | relevance | path

Searched refs:scriptRules (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_web.cpp4917 std::vector<std::string> scriptRules; in ParseScriptItems() local
4932 scriptRules.clear(); in ParseScriptItems()
4933 if (!JSViewAbstract::ParseJsStrArray(jsScriptRules, scriptRules)) { in ParseScriptItems()
4937 scriptItems.insert(std::make_pair(script, scriptRules)); in ParseScriptItems()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/
H A Dts-basic-components-web.md1813 将JavaScript脚本注入到Web组件中,当指定页面或者文档开始加载时,该脚本将在其来源与scriptRules匹配的任何页面中执行。
1842 { script: this.localStorage, scriptRules: ["*"] }
1887 将JavaScript脚本注入到Web组件中,当指定页面或者文档加载完成时,该脚本将在其来源与scriptRules匹配的任何页面中执行。
1914 { script: this.jsStr, scriptRules: ["*"] }
9103 | scriptRules | Array\<string> | 是 | 一组允许来源的匹配规则。<br>1.如果需要允许所有来源的网址,使用通配符“ * ”。<br>2.如果需要精确匹配,则描…
/ohos5.0/docs/en/application-dev/reference/apis-arkweb/
H A Dts-basic-components-web.md1813 …ument starts to be loaded, the script is executed on any page whose source matches **scriptRules**.
1842 { script: this.localStorage, scriptRules: ["*"] }
1887 … document has been loaded, the script is executed on any page whose source matches **scriptRules**.
1914 { script: this.jsStr, scriptRules: ["*"] }
9099scriptRules | Array\<string> | Yes | Matching rules for allowed sources.<br>1. To allow URLs from…