[Vue.js] 使用 Components 張貼者: 紅色死神 日期: 8月 02, 2018 取得連結 Facebook Twitter Pinterest 以電子郵件傳送 其他應用程式 當 UI 比較複雜時,可以使用 vue 的 components 的寫法,使用 Vue.component 定義元件和 template,官方範例是將陣列寫入 component 中。 See the Pen vue ex7 by deathhell (@deathhell) on CodePen. 利用 v-bind:class 可以設定不同狀態顯示不同 class See the Pen vue ex7b by deathhell (@deathhell) on CodePen. 留言
留言