blackbird消息弹出框 彻底替换alertBlackbird 是一个开源的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
展开内容