【文件属性】:
文件名称:log:打印元素中的信息
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-29 07:34:39
JavaScript
日志
打印元素中的信息。
用法
有关详细信息,您可以查看example目录。
var log = new Log ( ) ;
log . send ( 'hello world' ) ;
log . s ( 'hello world' ) ;
log . s ( 0 )
. s ( false )
. s ( '' )
. s ( undefined )
. s ( null )
. s ( NaN ) ;
var obj = {
name : 'Alex Chao' ,
address : {
Country : 'China' ,
province : 'Guangdong'
}
} ;
log . s ( JSON . stringify ( obj ) ) ;
选项
默认选项:
{
id : '' ,
classNam
【文件预览】:
log-master
----example()
--------print-objects.html(715B)
--------basic-values.html(365B)
--------mass-logs.html(268B)
--------limit-the-maximum-logs.html(327B)
--------custom-style.html(778B)
----package.json(627B)
----LICENSE(1KB)
----dist()
--------log.js(1KB)
----Gruntfile.js(689B)
----src()
--------log.js(3KB)
----.gitignore(36B)
----README.md(788B)
----.jshintrc(318B)