DocumentFragment()

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

DocumentFragment() 构造函数返回一个新创建的 DocumentFragment 对象。

语法

fragment = new DocumentFragment()

示例

js
fragment = new DocumentFragment();

标准

Specification
DOM Standard
# ref-for-dom-documentfragment-documentfragment①

浏览器兼容性

BCD tables only load in the browser

参见