DomElementInfo
Properties
cls
ts
cls: string | string[]需要被分配的 class。可以是以空格分割的字符串,或者是字符串数组。
text
ts
text: string | DocumentFragment需要被分配的 text。
attr
ts
attr: { [key: string]: string | number | boolean; }需要被添加的 HTML 属性。
title
ts
title: stringHTML 标题(用于 hover 时的 tooltip 显示)。
parent
ts
parent: Node要分配给的父元素。
value
ts
value: stringtype
ts
type: stringprepend
ts
prepend: booleanplaceholder
ts
placeholder: stringhref
ts
href: string