这篇翻译不完整。请帮忙从英语翻译这篇文章

Range.endContainer 是一个只读属性。它会返回Range对象结束的Node。如果要改变一个节点结束的位置,使用方法Range.setEnd()或者相似的方法。

语法

endRangeNode = range.endContainer;

示例

var range = document.createRange();

range.setStart(startNode,startOffset); 
range.setEnd(endNode,endOffset);
endRangeNode = range.endContainer;

规范

Specification Status Comment
DOM
Range.endContainer
Living Standard No change.
Document Object Model (DOM) Level 2 Traversal and Range Specification
Range.endContainer
Obsolete Initial specification.

浏览器支持

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) 1.0 (1.7 or earlier) 9.0 9.0 (Yes)
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) 1.0 (1.0) 9.0 9.0 (Yes)

相关链接

文档标签和贡献者

此页面的贡献者: Hyiker
最后编辑者: Hyiker,