flaviocopes Vue教程笔记

网址是:  https://flaviocopes.com

第一个 app:       https://flaviocopes.com/vue-first-app/

What this code does is, we instantiate a new Vue app, linked to (el mean element link )the #example element as its template (it’s defined using a CSS selector usually, but you can also pass in an HTMLElement).

Then, it associates that template to the data object. That is a special object that hosts the data we want Vue to render.

In the template, the special {{ }} tag indicates that’s some part of the template that’s dynamic, and its content should be looked up in the Vue app data.