console输出彩色字体

console.log("%c%s","color: red; background: yellow; font-size: 24px;","警告!");

猜你喜欢

转载自www.cnblogs.com/anxiaoyu/p/9705548.html