前端學(xué)習(xí)筆記

Git

"C:\Program Files\Git\etc\bash.bashrc"中添加export LESSCHARSET=utf-8 可解決commit中文亂碼問(wèn)題。
Powershell中使用 git diff | out-file -encoding default patch 確保git diff生成的patch文件不會(huì)產(chǎn)生亂碼
Git + VSCode


NPM, Yarn

NPM config字段所有keys, Yarn通用: https://docs.npmjs.com/misc/config#config-settings

yarn config set init-author-name user
yarn config set init-author-email user@example.com
yarn config set registry "https://registry.npm.taobao.org" //修改為大陸安裝源
yarn config list //列出所有已定義keys

Markdown

圖片

一般圖片
![avatar](http://upload.jianshu.io/users/upload_avatars/5444262/661d8da0-fab6-4252-9c76-3b9d7d8e154f?imageMogr2/auto-orient/strip|imageView2/1/w/300/h/300)

效果
avatar
avatar
圖片鏈接(簡(jiǎn)書(shū)中無(wú)效)
[![avatar](http://upload.jianshu.io/users/upload_avatars/5444262/661d8da0-fab6-4252-9c76-3b9d7d8e154f?imageMogr2/auto-orient/strip|imageView2/1/w/300/h/300 "title")](http://www.itdecent.cn/p/0158a5ae5bd3)

超鏈接

一般鏈接
[Google](https://www.google.com/)

效果 Google

自動(dòng)轉(zhuǎn)換鏈接
<https://www.google.com/>

效果 https://www.google.com/

<admin@example.com>

效果 admin@example.com

插入代碼

  1. 在每行代碼前加入4個(gè)空格或者添加一個(gè)制表符(TAB鍵)
  2. 在代碼兩側(cè)添加單個(gè)反引號(hào)\ `
  3. 在代碼兩側(cè)添加三個(gè)反引號(hào)```
  4. 在上一步基礎(chǔ)上,在前三個(gè)反引號(hào)后加上語(yǔ)言種類(lèi)如
    ```Javacript
    var body = document.querySelector('body');

即可實(shí)現(xiàn)對(duì)應(yīng)語(yǔ)言語(yǔ)法高亮,語(yǔ)言名稱(chēng)以及縮寫(xiě)列表可參見(jiàn)此處

效果

var body = document.querySelector('body');
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀(guān)點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容