弃用
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the
兼容性表格
at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
HTMLShadowElement.getDistributedNodes()
method returns a static
NodeList
的
distributed nodes
associated with this
<shadow>
元素。
var nodeList = object.getDistributedNodes()
// Get the distributed nodes var nodes = myShadowObject.getDistributedNodes();
This feature is no longer defined by any specifications.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
getDistributedNodes
弃用
非标
|
Chrome 35 | Edge 79 | Firefox No | IE No | Opera 26 | Safari No | WebView Android 37 | Chrome Android 35 | Firefox Android No | Opera Android ? | Safari iOS No | Samsung Internet Android 3.0 |
完整支持
不支持
兼容性未知
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
HTMLShadowElement
getDistributedNodes()