Methods
(static) this.alert()
提示信息
(static) this.alertLog()
提示JSON数据信息
(static) this.closeWindow()
关闭窗口
(static) this.debug(msg, data)
记录调试信息
Parameters:
| Name | Type | Description |
|---|---|---|
msg |
string | |
data |
object |
(static) this.defineConsole()
(static) this.defineEventListener()
兼容处理,定义EventListener对象
(static) this.info(msg, data)
info日志
Parameters:
| Name | Type | Description |
|---|---|---|
msg |
string | |
data |
object |
(static) this.log()
本地log日志,不向日志服务器发送
(static) this.showHtml()
(static) this.showMessage(title, msg, btns)
展示提示信息,可自定义按钮
Parameters:
| Name | Type | Description |
|---|---|---|
title |
string | 标题 |
msg |
string | 消息内容 |
btns |
array | 按钮集合,如:[{text:'OK',fn:function(){}}] |
(static) this.showPopup(x, y)
提示popup信息
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number | x轴方向位置信息,以提示框居中时为位置 0 |
y |
number | y轴方向位置信息 |
(static) this.validateBrowser()
验证浏览是否兼容redjs框架
(static) this.yesOrNo()
展示【确定】或【取消】操作的信息提示框