console输出彩色字体

console.log("%c%s","color: red; background: yellow; font-size: 24px;","警告!");
原文地址:https://www.cnblogs.com/anxiaoyu/p/9705548.html