新增第三篇文字
This commit is contained in:
parent
0a1f007c7c
commit
5a9a7d44b0
@ -8,5 +8,10 @@
|
||||
"title": "笔记2:让新版Chrome支持本地跨域请求调试",
|
||||
"date": "2019-09-20$1",
|
||||
"hasCode": false
|
||||
},
|
||||
{
|
||||
"title":"笔记3:console下文字颜色的实现",
|
||||
"date":"2019-12-29$1",
|
||||
"hasCode": false
|
||||
}
|
||||
]
|
12
content/html/2019-12-29$1.html
Normal file
12
content/html/2019-12-29$1.html
Normal file
@ -0,0 +1,12 @@
|
||||
<span>console下文字颜色的实现</span>
|
||||
<p>程序在console下输出的文字一般默认是白色或者是其他用户自定义的统一颜色</p>
|
||||
<img src="" alt="截图1">
|
||||
<p>改变文字的颜色一般要用到颜色转义字符\e或者是\033,如</p>
|
||||
<pre>
|
||||
<code>
|
||||
typedef enum colors
|
||||
{
|
||||
"<span style="color:blue">\e</span>[0;31;32m<span style="color:yellow">%s</span><span style="color:blue">\e</span>[0m"
|
||||
} colors;
|
||||
</code>
|
||||
</pre>
|
Loading…
Reference in New Issue
Block a user