blackbird消息弹出框(彻底替换alert)免费下载
【资源属性】:资源名称:blackbird消息弹出框(彻底替换alert)
资源大小:32KB
资源类别: js框架 》 其它框架
更新时间:2023-05-08
资源语言:简体中文
授权方式:免费下载
使用平台:Windows/Linux/Mac
下载地址:下载地址
资源介绍:
Blackbird 是一个开源的JavaScript库,提供了一种简单的记录日志的方式和一个控制台窗口,有了这个之后,你就可以抛弃alert() 了。
Usage
Public API
log.toggle() Hide/show Blackbird
log.move() Move Blackbird to next fixed positions: top-left, top-right, bottom-left, bottom-right
log.resize() Expand/contract Blackbird
log.clear() Clear all contents of Blackbird
log.debug( message ) Add a debug message to Blackbird
message: the string content of the debug message
log.info( message ) Add an info message to Blackbird
message: the string content of the info message
log.warn( message ) Add a warning message to Blackbird
message: the string content of the warn message
log.error( message ) Add an error message to Blackbird
message: the string content of the warn message
log.profile( label ) Start/end a time profiler for Blackbird. If a profiler named string does not exist, create a new profiler. Otherwise, stop the profiler string and display the time elapsed (in ms).
label: the string identifying a specific profile timer
Usage
Public API
log.toggle() Hide/show Blackbird
log.move() Move Blackbird to next fixed positions: top-left, top-right, bottom-left, bottom-right
log.resize() Expand/contract Blackbird
log.clear() Clear all contents of Blackbird
log.debug( message ) Add a debug message to Blackbird
message: the string content of the debug message
log.info( message ) Add an info message to Blackbird
message: the string content of the info message
log.warn( message ) Add a warning message to Blackbird
message: the string content of the warn message
log.error( message ) Add an error message to Blackbird
message: the string content of the warn message
log.profile( label ) Start/end a time profiler for Blackbird. If a profiler named string does not exist, create a new profiler. Otherwise, stop the profiler string and display the time elapsed (in ms).
label: the string identifying a specific profile timer