“PAGE” 方法

$t.createElement(temp)

根据传入的模板字符串创建 Element 元素。

参数

temp (String): Element 模板字符串。

返回

(Element):返回创建的 DOM 元素。

示例

$t.createElement('123') // null

$t.createElement('<p class="text">123</p>') // <p class="text">123</p>

results matching ""

    No results matching ""