diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/selection/iscollapsed | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/selection/iscollapsed')
-rw-r--r-- | files/zh-cn/web/api/selection/iscollapsed/index.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/selection/iscollapsed/index.html b/files/zh-cn/web/api/selection/iscollapsed/index.html new file mode 100644 index 0000000000..313426bc83 --- /dev/null +++ b/files/zh-cn/web/api/selection/iscollapsed/index.html @@ -0,0 +1,16 @@ +--- +title: Selection.isCollapsed +slug: Web/API/Selection/isCollapsed +translation_of: Web/API/Selection/isCollapsed +--- +<p>{{ ApiRef() }}</p> +<h3 id="Summary" name="Summary">概述</h3> +<p>返回一个布尔值用于描述选区的起始点和终止点是否位于一个位置(即是否框选了,译者注)。</p> +<h3 id="Syntax" name="Syntax">用法</h3> +<pre class="eval"><i>sel</i>.isCollapsed +</pre> +<h3 id="Notes" name="Notes">注意</h3> +<p>即使是一个被折叠了的选区,其 rangeCount的结果也可能大于0。<span style="font-family: 'Courier New', 'Andale Mono', monospace; line-height: 1.5;">sel.getRangeAt(0)会在选区被折叠的情况下返回一个值。</span></p> +<div class="noinclude"> + </div> +<p>{{ languages( { "es": "es/DOM/Selection/isCollapsed", "it": "it/DOM/Selection/isCollapsed", "pl": "pl/DOM/Selection/isCollapsed" } ) }}</p> |