摘要: You can dynamically switch between components in a template by using the reserved <component> element and dynamically bind to its is attribute. By usi 阅读全文
posted @ 2017-01-24 16:49 Zhentiw 阅读(527) 评论(0) 推荐(0)
摘要: By building components, you can extend basic HTML elements and reuse encapsulated code. Most options that are passed into a Vue constructor can be pas 阅读全文
posted @ 2017-01-24 16:28 Zhentiw 阅读(509) 评论(0) 推荐(0)
摘要: You can use v-if and v-else to display content based on assertions on your data. Similarly, v-show can be used to render the content, but hide it with 阅读全文
posted @ 2017-01-24 15:50 Zhentiw 阅读(1297) 评论(0) 推荐(0)