命名空间 console
Defined in: jx.console.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Jx 控制台,用于显示调试信息以及进行一些简单的脚本调试等操作。可以配合 J.debug J.runtime 来进行数据显示和调试.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
console.isCustomConsole
是否为自定义的控制台
|
Method Attributes | Method Name and Description |
---|---|
<static> |
console.clear(e)
清空log
|
<static> |
console.debug(msg, tag)
日志调试输出
|
<static> |
console.disable()
关闭console
|
<static> |
console.enable()
开启console
|
<static> |
console.error(msg, tag)
关键日志错误输出
|
<static> |
console.filter(s)
过滤输出,支持正则,不区分大小写
|
<static> |
console.filterByMsg(logArr, msg)
过滤Msg
|
<static> |
console.filterByTag(logArr, tag)
过滤tag
|
<static> |
console.filterByType(logArr, type)
过滤type
|
<static> |
console.focusCommandLine()
|
<static> |
console.getReport(type, tag, msg)
获取日志报告
|
<static> |
console.handleDocumentKeydown(e)
|
<static> |
console.help(e)
显示帮助
|
<static> |
console.hide(e)
隐藏console
|
<static> |
console.info(msg, tag)
日志灌水输出
|
<static> |
console.logRecord(log)
log记录,当有query.console的时候,不限记录数量,没有时限制最大数量
|
<static> |
console.onInputKeyup(e)
|
<static> |
console.out(msg, tag, type)
向控制台输出信息的方法,通过url里面的consolefilter参数可以控制tag输出
|
<static> |
console.outConsole(msg, type)
向控制台输出信息并显示
|
<static> |
console.outConsoleShow(msg, type)
控制台记录信息
|
<static> |
console.print(html)
往控制台打印
|
<static> |
console.profile(msg, tag)
关键日志正常输出
|
<static> |
console.refresh(e)
刷新控制台
|
<static> |
console.render(logArr, isShowAll)
渲染log列表
|
<static> |
console.setTemplate(temp)
设置模版类型
|
<static> |
console.setToDebug()
设置debug类型,是firebug or custom
|
<static> |
console.setToNoDebug()
关闭out输出
|
<static> |
console.show()
显示console
|
<static> |
console.toggleShow()
控制台开关
|
<static> |
console.warn(msg, tag)
关键日志警告输出
|
属性详解
<static>
console.isCustomConsole
是否为自定义的控制台
方法详解
<static>
console.clear(e)
- 功能:
- 清空log
- 参数:
-
- e
<static>
console.debug(msg, tag)
- 功能:
- 日志调试输出
- 参数:
-
- {String} msg
- 输出的日志
- tag
<static>
console.disable()
- 功能:
- 关闭console
<static>
console.enable()
- 功能:
- 开启console
<static>
console.error(msg, tag)
- 功能:
- 关键日志错误输出
- 参数:
-
- {String} msg
- 输出的日志
- tag
<static>
{String}
console.filter(s)
- 功能:
- 过滤输出,支持正则,不区分大小写
- 参数:
-
- {RegExp} s
- 过滤的字符活正则
- 返回:
- {String} 过滤后的结果
<static>
{Array}
console.filterByMsg(logArr, msg)
- 功能:
- 过滤Msg
- 参数:
-
- {Array} logArr
- 日志数组
- {String} msg
- 类型
- 返回:
- {Array} logArr 匹配的日志数组
<static>
{Array}
console.filterByTag(logArr, tag)
- 功能:
- 过滤tag
- 参数:
-
- {Array} logArr
- 日志数组
- {String} tag
- 类型
- 返回:
- {Array} logArr 匹配的日志数组
<static>
{Array}
console.filterByType(logArr, type)
- 功能:
- 过滤type
- 参数:
-
- {Array} logArr
- 日志数组
- {Number} type
- 类型
- 返回:
- {Array} logArr 匹配的日志数组
<static>
console.focusCommandLine()
- 功能:
<static>
{String}
console.getReport(type, tag, msg)
- 功能:
-
获取日志报告
Author: tealin.
- 参数:
-
- {Int|Array} type
- 需要报告的类型,多选时用数组表示
- {String|Array} tag
- 需要报告的标志,多选时用数组表示
- {String|Array} msg
- 需要报告筛选的信息,多选时用数组表示
- 返回:
- {String} log 日志对象
<static>
console.handleDocumentKeydown(e)
- 功能:
- 参数:
-
- e
<static>
console.help(e)
- 功能:
- 显示帮助
- 参数:
-
- e
<static>
console.hide(e)
- 功能:
- 隐藏console
- 参数:
-
- e
<static>
console.info(msg, tag)
- 功能:
- 日志灌水输出
- 参数:
-
- {String} msg
- 输出的日志
- tag
<static>
console.logRecord(log)
- 功能:
- log记录,当有query.console的时候,不限记录数量,没有时限制最大数量
- 参数:
-
- {Log} log
- 日志对象
<static>
console.onInputKeyup(e)
- 功能:
- 参数:
-
- e
<static>
{String}
console.out(msg, tag, type)
- 功能:
- 向控制台输出信息的方法,通过url里面的consolefilter参数可以控制tag输出
- 参数:
-
- {String} msg
- 要输出的信息
- {String} tag
- 自定义标签
- {Number} type
- 要输出的信息的类型,可选项
- 返回:
- {String} 返回要输出的信息
<static>
{String}
console.outConsole(msg, type)
- 功能:
- 向控制台输出信息并显示
- 参数:
-
- {String} msg
- 要输出的信息
- {Number} type
- 要输出的信息的类型,可选项
- 返回:
- {String} 返回要输出的信息
<static>
{String}
console.outConsoleShow(msg, type)
- 功能:
- 控制台记录信息
- 参数:
-
- {String} msg
- 要输出的信息
- {Number} type
- 要输出的信息的类型,可选项
- 返回:
- {String} 返回要输出的信息
<static>
console.print(html)
- 功能:
- 往控制台打印
- 参数:
-
- {String} html
- 打印的信息
<static>
console.profile(msg, tag)
- 功能:
- 关键日志正常输出
- 参数:
-
- {String} msg
- 输出的日志
- tag
<static>
console.refresh(e)
- 功能:
- 刷新控制台
- 参数:
-
- e
<static>
console.render(logArr, isShowAll)
- 功能:
-
渲染log列表
Author: tealin.
- 参数:
-
- logArr
- isShowAll
<static>
console.setTemplate(temp)
- 功能:
- 设置模版类型
- 参数:
-
- {Number} temp
- 模版类型
<static>
console.setToDebug()
- 功能:
- 设置debug类型,是firebug or custom
<static>
console.setToNoDebug()
- 功能:
- 关闭out输出
<static>
console.show()
- 功能:
- 显示console
<static>
console.toggleShow()
- 功能:
- 控制台开关
<static>
console.warn(msg, tag)
- 功能:
- 关键日志警告输出
- 参数:
-
- {String} msg
- 输出的日志
- tag