From 634e45b21248fbb508edb7988483a4b9cf1fff7a Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 25 Feb 2021 18:24:02 +0100 Subject: sync: move --- .../web/api/document/fullscreenelement/index.html | 78 ++++++++++++++++++++++ .../fullscreenelement/index.html | 78 ---------------------- .../web/api/xmlhttprequest/openrequest/index.html | 8 --- 3 files changed, 78 insertions(+), 86 deletions(-) create mode 100644 files/zh-cn/web/api/document/fullscreenelement/index.html delete mode 100644 files/zh-cn/web/api/documentorshadowroot/fullscreenelement/index.html delete mode 100644 files/zh-cn/web/api/xmlhttprequest/openrequest/index.html (limited to 'files/zh-cn/web/api') diff --git a/files/zh-cn/web/api/document/fullscreenelement/index.html b/files/zh-cn/web/api/document/fullscreenelement/index.html new file mode 100644 index 0000000000..d26c1b85df --- /dev/null +++ b/files/zh-cn/web/api/document/fullscreenelement/index.html @@ -0,0 +1,78 @@ +--- +title: document.mozFullScreenElement +slug: Web/API/DocumentOrShadowRoot/fullscreenElement +translation_of: Web/API/DocumentOrShadowRoot/fullscreenElement +original_slug: Web/API/Document/mozFullScreenElement +--- +

{{ ApiRef() }}

+

概述

+

返回当前文档中正在以全屏模式显示的{{ domxref("Element") }}节点,如果没有使用全屏模式,则返回null.

+

语法

+
var element = document.mozFullScreenElement;
+
+

示例

+
function isVideoInFullsreen() {
+  if (document.mozFullScreenElement && document.mozFullScreenElement.nodeName == 'VIDEO') {
+    console.log('您的视频正在以全屏模式显示');
+  }
+}
+

辅助

+

查看使用"全屏模式"页面了解详情.

+

浏览器兼容性

+

{{ CompatibilityTable() }}

+
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatUnknown() }}{{ CompatGeckoDesktop("9.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
+
+
+ + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatGeckoMobile("9.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
+
+

规范

+

该方法提案已经进入相关规范草案 http://dvcs.w3.org/hg/fullscrezh-CN/raw-file/tip/Overview.html#dom-document-fullscreenelement

+

相关链接

+ diff --git a/files/zh-cn/web/api/documentorshadowroot/fullscreenelement/index.html b/files/zh-cn/web/api/documentorshadowroot/fullscreenelement/index.html deleted file mode 100644 index d26c1b85df..0000000000 --- a/files/zh-cn/web/api/documentorshadowroot/fullscreenelement/index.html +++ /dev/null @@ -1,78 +0,0 @@ ---- -title: document.mozFullScreenElement -slug: Web/API/DocumentOrShadowRoot/fullscreenElement -translation_of: Web/API/DocumentOrShadowRoot/fullscreenElement -original_slug: Web/API/Document/mozFullScreenElement ---- -

{{ ApiRef() }}

-

概述

-

返回当前文档中正在以全屏模式显示的{{ domxref("Element") }}节点,如果没有使用全屏模式,则返回null.

-

语法

-
var element = document.mozFullScreenElement;
-
-

示例

-
function isVideoInFullsreen() {
-  if (document.mozFullScreenElement && document.mozFullScreenElement.nodeName == 'VIDEO') {
-    console.log('您的视频正在以全屏模式显示');
-  }
-}
-

辅助

-

查看使用"全屏模式"页面了解详情.

-

浏览器兼容性

-

{{ CompatibilityTable() }}

-
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatUnknown() }}{{ CompatGeckoDesktop("9.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
-
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatGeckoMobile("9.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
-

规范

-

该方法提案已经进入相关规范草案 http://dvcs.w3.org/hg/fullscrezh-CN/raw-file/tip/Overview.html#dom-document-fullscreenelement

-

相关链接

- diff --git a/files/zh-cn/web/api/xmlhttprequest/openrequest/index.html b/files/zh-cn/web/api/xmlhttprequest/openrequest/index.html deleted file mode 100644 index 2fdd0ec2a3..0000000000 --- a/files/zh-cn/web/api/xmlhttprequest/openrequest/index.html +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: XMLHttpRequest.openRequest() -slug: Web/API/XMLHttpRequest/openRequest -translation_of: Web/API/XMLHttpRequest/openRequest ---- -

{{APIRef("XMLHttpRequest")}}{{non-standard_header}}

- -

此Mozilla特定的方法仅在特权代码中可用, 且仅能从C++上下文中调用以初始化 XMLHttpRequest.若想要从JavaScript代码初始化一个request,请使用标准的 {{domxref("XMLHttpRequest.open", "open()")}} 方法.

-- cgit v1.2.3-54-g00ecf