在開發的時候有時精神不濟,手殘刪掉正在開發的分支,瞬間精神都來了,還記得第一次誤刪分支的我背脊發涼,覺得世界要崩塌了,這幾天的工作進度是否要全部重來呢…?,以往我的認知是 git reset 或是 delete…
以往在處理非同步流程時,如果要確保執行順序並且帶入先前執行的結果會採用callback的方式,但很容易就會變成callback hell 回調地獄(如下圖),不易閱讀之外也很難維護,而Promise的出現,可以優雅的解決這個問題
或許你曾經有過這樣的經驗,專案採用webpack開發,一開始bundle的速度還算快,但時間一久,隨著專案的增長,套件的相依關係變得越來越冗長,能明顯感受到webpack…
近期一直在前端社群裡看到有人在討論pinia,讓人不禁好奇pinia到底是何方神聖 ? 為甚麼越來越多人開始使用pinia…
TypeScript可以先聲明類型為何(ex 字串 數字等等),不過TypeScript本身就可以推斷類型,如果寫let a = 123,變數a就會被認定為數字型別,所以不聲明也可以
TypeScript筆記 — function
由於每次看完教學就忘記流程了😭,所以決定還是寫一篇筆記來記錄一下