DOMParser: DOMParser() constructor
{{APIRef("DOM")}}
The DOMParser() constructor creates a new DOMParser object. This object can be used to parse the text of a document using the parseFromString() method.
Syntax
new DOMParser()
Parameters
None.
Return value
A new DOMParser object. This object can be used to parse the text of a document using the parseFromString() method.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
这篇文档对你有帮助吗?
谢谢你的反馈!