可以设置样式的Console.log
jopen
11年前
Console.log with style 让你通过 Console.log 显示的日志信息支持各种样式。
- Safely call
log
(instead ofconsole.log
) in any browser. - Use markdown syntax for quick formatting:
- italic —
log('this is *italic*')
- bold —
log('this word _bold_')
code
—log('this word `code`')
- italic —
- Use a custom syntax to style text however you want:
log('this is [c="color: red"]red[c]')
.