Skip to content

Documentation / @geoverse/core-ol / stringToDom

Function: stringToDom() ​

ts
function stringToDom(html): ChildNode | null;

Defined in: packages/core-ol/src/utils/dom.ts:6

HTML 字符串转 DOM 节点(取第一个子节点)

Parameters ​

html ​

string

Returns ​

ChildNode | null