html文本模块
- Source:
Methods
(inner) attr(name) → {string}
- Source:
获取指定属性名的值
Parameters:
Name | Type | Description |
---|---|---|
name |
string | 属性名 |
Returns:
属性值
- Type
- string
(inner) html(content)
- Source:
插入内容
Parameters:
Name | Type | Description |
---|---|---|
content |
string | 内容 |
(inner) text(content)
- Source:
以html解析并插入内容
Parameters:
Name | Type | Description |
---|---|---|
content |
string | 内容 |