上一页 1 ··· 372 373 374 375 376 377 378 379 380 ··· 494 下一页
摘要: 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 阅读(528) 评论(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 阅读(512) 评论(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 阅读(1302) 评论(0) 推荐(0)
摘要: What is Isomorphisms?We have a value x, then apply function 'to' and 'from' to value 'x', the result we should still get 'x'. So Isomorphisms is kind 阅读全文
posted @ 2017-01-23 15:15 Zhentiw 阅读(224) 评论(0) 推荐(0)
摘要: Use v-bind:class and v-bind:style to compute html classes and inline styles from component data. Vue.js will automatically add vendor prefixes when us 阅读全文
posted @ 2017-01-22 05:14 Zhentiw 阅读(267) 评论(0) 推荐(0)
摘要: this is probably the most tricky thing to use in JavaScript and therefore TypeScript. Fortunately there is a TypeScript compiler flag noImplicit this  阅读全文
posted @ 2017-01-21 17:41 Zhentiw 阅读(198) 评论(0) 推荐(0)
摘要: Use watchers to keep an eye on your data. Watchers are methods that are invoked when the specified attribute changes. They are useful when you want to 阅读全文
posted @ 2017-01-20 19:49 Zhentiw 阅读(231) 评论(0) 推荐(0)
摘要: You can add computed properties to a component to calculate a property on the fly. The benefit of this over invoking a method is that computed propert 阅读全文
posted @ 2017-01-20 19:48 Zhentiw 阅读(587) 评论(0) 推荐(0)
摘要: Just like in the command line, you can pipe a property through a filter to get a desired result. You can even chain them together! 阅读全文
posted @ 2017-01-20 19:13 Zhentiw 阅读(333) 评论(0) 推荐(0)
摘要: Components are one of the most powerful features of Vue. Let's take a look at how to write our first components and make use of them in a parent compo 阅读全文
posted @ 2017-01-20 19:05 Zhentiw 阅读(524) 评论(0) 推荐(0)
上一页 1 ··· 372 373 374 375 376 377 378 379 380 ··· 494 下一页