[Vue.js] 使用 Components 紅色死神 發表於 2018年8月2日 星期四 8月 02, 2018 / 沒有留言 標籤 javascript, Vue.js 當 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. 以電子郵件傳送這篇文章BlogThis!分享至 Twitter分享至 Facebook 反應:
0 意見:
張貼留言