Git Notes (2)

|

本地 branch 更新至 Github (遠端儲存庫尚未有該分支)

$ git push -u origin <local branch>:<remoteBranchToBeCreated>

Github 會產生一個名為 remoteBranchToBeCreated 的 new branch

Read more

Vue-101-Day 13

|

Component註冊時,都會需要給予名稱,以下範例所用的方式即為全域註冊。

Read more

Vue-101-Day 12

|

Vue提供Component讓Vue Instance可以重複使用這些Component

Read more

Vue-101-Day 11

|

使用v-model這個 directive 與 input、textarea、select 元素進行雙向綁定。

Read more

Vue-101-Day 10

|

使用v-on這個 directive監聽 DOM 事件以及執行 JavaScript code。

Read more

Vue-101-Day 9

|

使用v-for 這個 directive 將 Array/Object 裡的內容對應成 HTML 元素

Read more

Vue-101-Day 8

|

當網頁中某項內容必須是有條件顯示(Conditional Rendering),就可以使用v-if這個directive。

Read more

Curl 介紹及指令

|

Curl 是一款免費且開源的軟體,目的是利用 URL 語法傳遞資料的命令列工具及 library,C可以當作 crawl,就是 url 上的資料給抓下來。

Read more

Vue-101-Day 7

|

data binding 的常見的需求是操作 element 的 class 或是 inline-style,class 與 style 皆為 attribute, 都可以使用 v-bind 進行綁定。

Read more

Vue-101-Day 6

|

在 template 置放太多運算式或邏輯判斷,可能會造成 template 臃腫 或是 程式碼難以維護,看程式碼的時候可能需要花時間理解。 遇到複雜的邏輯處理時,應該使用 computed property

Read more