Class: Redjs

Redjs(config)

new Redjs(config)

Parameters:
Name Type Description
config
Source:

Methods

(static) this.alert()

提示信息
Source:

(static) this.alertLog()

提示JSON数据信息
Source:

(static) this.closeWindow()

关闭窗口
Source:

(static) this.debug(msg, data)

记录调试信息
Parameters:
Name Type Description
msg string
data object
Source:

(static) this.defineConsole()

Source:

(static) this.defineEventListener()

兼容处理,定义EventListener对象
Source:

(static) this.info(msg, data)

info日志
Parameters:
Name Type Description
msg string
data object
Source:

(static) this.log()

本地log日志,不向日志服务器发送
Source:

(static) this.showHtml()

Source:

(static) this.showMessage(title, msg, btns)

展示提示信息,可自定义按钮
Parameters:
Name Type Description
title string 标题
msg string 消息内容
btns array 按钮集合,如:[{text:'OK',fn:function(){}}]
Source:

(static) this.showPopup(x, y)

提示popup信息
Parameters:
Name Type Description
x number x轴方向位置信息,以提示框居中时为位置 0
y number y轴方向位置信息
Source:

(static) this.validateBrowser()

验证浏览是否兼容redjs框架
Source:

(static) this.yesOrNo()

展示【确定】或【取消】操作的信息提示框
Source: