安裝 nvm 環境,Node.js 開發者必學(Windows、Mac 均適用)
附上網址做參考
https://www.jianshu.com/p/622ad36ee020
這個有移除作法
https://yimincai.net/2020/install-and-uninstall-nvm-on-macos/
nvm安裝完後會連npm一起幫你裝好
想要切換node的版本 可以使用nvm use + 想要切換的版本號
nvm use v8.11.1
這樣就可以把node的版本切換到v8.11.1
如果你發現你每次都要先切換到你想要的版本號才能開始工作,那麼你可以考慮將你要切換的版本號改為預設版本號
nvm alias default 8.11.1
這樣之後預設的node就會是v8.11.1版
正規表達式撰寫方法有兩種
Nov 6, 2023$ git remote -v $ git remote set-url origin https://hostname/USERNAME/REPOSITORY.git add remote $ git remote add origin https://github.com/USER/REPO.git http的網址 https://[hostname]/USERNAME/REPOSITORY.git SSH的網址
Feb 14, 2023{%hackmd theme-dark %} tags: react 高階組件(High Order Component)官方文檔 高階組件的命名,官網的做法是使用小寫開頭。 胡子大哈說高階組件就是一個函數,傳給它一個組件,它返回一個新的組件。
Sep 21, 2022{%hackmd theme-dark %} 閉包的好處有什麼?優點之一就是能把變數隱藏在裡面讓外部存取不到 簡單的範例: function test() { var a = 10; function inner() {
Aug 5, 2022or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up