console.log("%c%s", "color: red; background: yellow; font-size: 24px;", "警告!");
参考资料:
https://www.webhek.com/post/add-styles-console.html