成员
module:HTML
导出 HTML。
(内部) Base
模块依赖项。
(内部) Date
保存计时器引用以避免 Sinon 干扰(参见 GH-237)。
(内部) statsTemplate
统计模板。
方法
(内部) error(msg)
显示错误 msg。
Parameters
| 名称 | 类型 | 描述 |
|---|---|---|
msg | string |
(内部) fragment(html)
从 html 返回 DOM 片段。
Parameters
| 名称 | 类型 | 描述 |
|---|---|---|
html | string |
(内部) hideSuitesWithout(classname)
检查没有元素的套件
使用 classname,并隐藏它们。
Parameters
| 名称 | 类型 | 描述 |
|---|---|---|
classname | text |
(内部) makeUrl(s) → {string}
创建 URL,保留查询字符串(“search”)参数。
Parameters
| 名称 | 类型 | 描述 |
|---|---|---|
s | string |
返回值
一个新的 URL。
- 类型
- string
(内部) on()
使用回调 fn 监听 event。
(内部) text(el, contents)
设置元素的文本内容。
Parameters
| 名称 | 类型 | 描述 |
|---|---|---|
el | HTMLElement | |
contents | string |
(内部) unhide()
取消隐藏 .hidden 套件。