输出文字:
1.console.log("%c 控制台输出 %c 来看看把 %c 测试", "color:red","","color:green;font-weight:bold")
效果:
添加图片;
1 console.log("%c ", "background: url(https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1590988418319&di=1158a72972b785f9361c5b1fd5107eff&imgtype=0&src=http%3A%2F%2Fa2.att.hudong.com%2F36%2F48%2F19300001357258133412489354717.jpg) no-repeat center;padding-left:640px;padding-bottom: 362px;")
效果: