aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/conflicting/web/api/documentorshadowroot/getselection/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/conflicting/web/api/documentorshadowroot/getselection/index.html')
-rw-r--r--files/zh-cn/conflicting/web/api/documentorshadowroot/getselection/index.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/files/zh-cn/conflicting/web/api/documentorshadowroot/getselection/index.html b/files/zh-cn/conflicting/web/api/documentorshadowroot/getselection/index.html
new file mode 100644
index 0000000000..dce4bc9c58
--- /dev/null
+++ b/files/zh-cn/conflicting/web/api/documentorshadowroot/getselection/index.html
@@ -0,0 +1,16 @@
+---
+title: document.getSelection
+slug: conflicting/Web/API/DocumentOrShadowRoot/getSelection
+translation_of: Web/API/DocumentOrShadowRoot/getSelection
+translation_of_original: Web/API/Document/getSelection
+original_slug: Web/API/Document/getSelection
+---
+<article class="approved text-content" style="padding-right: 10px; width: 652px; float: left;">
+<div class="boxed translate-rendered" style="">
+<p>{{APIRef("DOM")}}</p>
+
+<p>该方法的功能等价于 {{domxref("Window.getSelection()")}} 方法;其返回一个 {{domxref("Selection")}} 对象,表示文档中当前被选择的文本。</p>
+</div>
+</article>
+
+<p> </p>