console输出彩色字体

console.log("%c%s","color: red; background: yellow; font-size: 24px;","警告!");
posted @ 2018-09-26 10:41  安筱雨  阅读(201)  评论(0)    收藏  举报