通过占位符%c,可以对输出到console控制台的文字进行CSS控制。...1.console.log输入彩色文字:
console.log("%c 全栈开发 %c L %c 亦枫", "color:red","color:green","color:green")
?...2.console输出3D文本:
console.log("%c3D Text"," text-shadow: 0 1px 0 #ccc,0 2px 0 #c9c9c9,0 3px 0 #bbb,0 4px...3.console输出彩色背景文字:
console.log("%c彩色文字","background: rgba(252,234,187,1);background: -moz-linear-gradient