From 9a110dee28ae2ef12ee014b98fda6bae6ee48edb Mon Sep 17 00:00:00 2001 From: YujiSoftware Date: Wed, 2 Mar 2022 20:22:51 +0900 Subject: Migrate to Compat macro (zh-cn) --- files/zh-cn/web/api/htmlscriptelement/index.html | 105 +---------------------- 1 file changed, 1 insertion(+), 104 deletions(-) (limited to 'files/zh-cn/web/api/htmlscriptelement') diff --git a/files/zh-cn/web/api/htmlscriptelement/index.html b/files/zh-cn/web/api/htmlscriptelement/index.html index c9b85d01e8..284448acc4 100644 --- a/files/zh-cn/web/api/htmlscriptelement/index.html +++ b/files/zh-cn/web/api/htmlscriptelement/index.html @@ -168,110 +168,7 @@ importScript("myScript2.js", /* onload function: */ function () { alert("You rea

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support1.0{{CompatGeckoDesktop("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
async{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.9.2")}}10{{CompatNo}}{{CompatVersionUnknown}}
defer{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.9.1")}} -

4 (follows a spec of its own)

- -

10 (by the spec)

-
{{CompatNo}}{{CompatVersionUnknown}}
crossOrigin {{experimental_inline}}{{WebKitBug(81438)}}{{CompatGeckoDesktop("13")}} {{bug(696301)}}{{CompatNo}}{{CompatNo}}{{WebKitBug(81438)}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatGeckoMobile("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
async{{CompatVersionUnknown}}{{CompatGeckoMobile("1.0")}}{{CompatNo}}{{CompatUnknown}}{{CompatVersionUnknown}}
defer{{CompatVersionUnknown}}{{CompatGeckoMobile("1.0")}}{{CompatNo}}{{CompatUnknown}}{{CompatVersionUnknown}}
crossOrigin {{experimental_inline}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -

Gecko-specific notes

- -

  从Gecko2.0 { { geckoRelease(" 2.0 ")} },插入脚本创建的元素通过调用document.createElement(“脚本”)到DOM不再强制执行插入顺序。这种变化让Gecko正确遵守HTML5规范。让script-inserted外部脚本执行的插入顺序,设置异步属性为false。
-   

+{{Compat("api.HTMLScriptElement")}}

See also

-- cgit v1.2.3-54-g00ecf