Range.setStartAfter()

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

The Range.setStartAfter() method sets the start position of a Range relative to a Node. The parent Node of the start of the Range will be the same as that for the referenceNode.

语法

range.setStartAfter(referenceNode);

参数

referenceNode
The Node to start the Range after.

例子

var range = document.createRange();
var referenceNode = document.getElementsByTagName("div").item(0);

range.setStartAfter(referenceNode);

规范

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

浏览器兼容性

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes499 Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes4 Yes Yes ?

参见

文档标签和贡献者

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