Home > Web Front-end > JS Tutorial > Use new message popup blackbirdjs_lib_js

Use new message popup blackbirdjs_lib_js

WBOY
Release: 2016-05-16 18:59:56
Original
1108 people have browsed it

jgyhuzhou wrote
BlackBird, a JavaScript logging library developed by G. Scott Olson, is equivalent to log4j in Java. JavaScript developers no longer need to use alert for debugging.
The following are specific operation instructions:
Html code

Copy code The code is as follows:




< ;link type="text/css" rel="Stylesheet" href="//m.sbmmt.com/PATH/TO/blackbird.css" />
...





...


The code is as follows:


log.debug( 'this is a debug message' );
log.info( 'this is an info message' ); log.warn( 'this is a warning message' ); log.error( 'this is an error message' ); log.debug( 'this is a debug message' ); log. info( 'this is an info message' ); log.warn( 'this is a warning message' ); log.error( 'this is an error message' );

The advantage of this method is that all these public methods can independently realize the data. It is easy to determine the type of email to send:


Supports the following browsers:
* Internet Explorer 6
* Firefox 2
* Safari 2
* Opera 9.5
In addition, if you are using YUI, you can consider the Logger component in YUI
Official address
http://www.gscottolson.com/blackbirdjs/
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template