console.log支持的格式标志有:

 

console.log

1、console.log('%c测试内容','color:red;font-size:18px;')

输出:测试内容

2、console.log('%c测试内容,%c测试','color:red;font-size:18px;','color:black;font-size:18px;')

输出:测试内容,测试

转载自AlloyTeam:http://www.alloyteam.com/2013/11/console-log/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2022-01-01
  • 2021-08-03
  • 2021-09-25
  • 2022-03-08
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2022-02-11
相关资源
相似解决方案