示例
1.console.log("%c需要输出的信息 ", "color:red");
2.console.log("%c需要输出的信息 ", "color:red;font-size:30px;width:200px;height:200px;background-color:green");
3.console.log("%c", "padding:50px 300px;line-height:120px;background:url('http://www.iconpng.com/png/tailwaggers_free/pug.png') no-repeat;");
给console.log添加样式
最新推荐文章于 2024-06-01 11:34:03 发布