1. vue is a progressive framework: What is progressive? Simple to understand, from the inside out vue layer is rendered view -> mechanism assembly -> Routing Mechanism -> Status Management -> Construction work layered composition, a developer as needed, on-demand function is introduced using the hierarchical vue, from simple to advanced deep progressive use. Such as:
Primary: both can only do basic things like page rendering operation, submit the form class with vue.
Intermediate: can be further achieved through the development of component-based vue, code reuse.
Advanced: vue also be further achieved by the front-end routing, centralized management of the state and, ultimately, a highly engineered.
2. vue template syntax: {{}} and v-html and v-text.
<!--模板语法支持以下:-->
<div>{{msg}}</div>
<div>{{ number + 1 }}</div>
<div>{{ ok ? 'YES' : 'NO' }}</div>
<div>{{ message.split('').reverse().join('') }}</div>
<!--模板语法不支持以下:-->
<div>if (ok) { return message }</div>
<div>{{ var a = 1 }}</div>