1.0.5 • Published 4 years ago

cn.console v1.0.5

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

cn.console

一个简单js的log管理者
可通用cn.switch或console.switch设置是否开启打印
默认开启状态:cn.switch = true;
想要关闭打印:cn.switch = false;
如您想使用更多的功能,告诉我,我加。。
微信: 15011021101
谁知道怎么隐藏打印时后面带的文件名和行号,谢谢啦

npm 下载

// 第一种方式
npm i cn.console --save

// 第二种方式

git clone https://github.com/cncod/cn.console.git

// 第三种方式,下载zip,解压即可
https://github.com/cncod/cn.console/archive/master.zip

引入库

// 第一种方式
import cn from 'cn.console'

// 第二种方式,直接 require就行,cn是全局变量
require('cn.console')

// 第三种方式
<script type="text/javascript" src="cn.console.js">

示例

// 
console.log('王晓维')
console.error('王晓维')

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago