我排版時最常用也最愛的 css 語法就是 flex(直接忘記float是誰?),這裡整理六角上課中老師介紹的 flex 屬性,以及後來再上網查找的筆記。
在初學時,經常性的使用div,會讓整個 html 結構過多的 div 階層,其實就結果而言也能成功,但是會讓後面的人閱讀起來就困難,即便是自己回頭看自己的 code ,能確保快速找到想要的嗎?
第五堂課就是這次 git 課程的最終了😭
最後主要講 git rebase、git cherry-pick、git reset 三項,用於整理與更複雜的使用情況。
接續上篇,接著分享幾個 event object 中常見屬性和更多 event 觸發事件:
Gulp 是一個編譯軟體可以watch做scss編譯以及可以做EJS layout,所以平常寫code就需要打開。
函式 function 就是可以把一個重複的動作先打包成一套動作,方便重複使用和維護。先來看看函式的基礎架構,有函式名稱、在()中的參數arguments 、最後{}中方入需要執行的動作。
()
arguments
{}
把資料從JS以純文字方式渲染到畫面上,可以使用 v-text 標籤或是雙大括號{{}} ,一般開發上會使用 {{}},最為方便 。
v-text
{{}}
判斷式,流程控制的條件語法,利用布林值的 true 或 false 去判斷只要達到特定條件就會執行某段程式碼。這在寫程式中非常常用到唷~要記得~
true
false
BEM 其實是一種 CSS class 命名的設計模式🤩,把原本的 class 名稱用不同的區塊來做寫法上的區分,讓人更容易閱讀,BEM 分成以下三個: