0
点赞
收藏
分享

微信扫一扫

自定义Console打印结果样式


 

 

自定义Console打印结果样式_报错信息

console.log("%c你挚爱的强哥友情提示您:","background:green;color:white;font-family:'微软雅黑';font-size:60px;font-weight:bold");

自定义Console打印结果样式_console.log_02

let msg='报错内容'
console.log('%c报错信息:','background:red;color:white;padding:5px;border-radius:4px;',msg);

举报

相关推荐

0 条评论