Vue similarities and applets

Applet reference vue grammar, done before the applet, can reverse thinking.
1, Vue file suffix is .vue, vue components of the html <template>, js <script > and css <style> wrote in the same file, the program is divided into three small files, vue equivalent to merge three files applet into a file.
2, the routing VueRouter, similar to the partial refresh, the method corresponds to a small configuration file path.
3, VueResource, corresponds to the method of ajax http request.
4, vuex data storage, storage warehouse, distribution tool data directly and quickly to the individual components, similar to the cache applet.
5, life-cycle function, that is, the new applet page, that is, those new pages initialization function.
6, vue cycle for the full set of parameters used in a feed array, because the two-way binding, but only for a single set of data, can not be applied to the whole number.

Guess you like

Origin www.cnblogs.com/sunnywindycloudy/p/11351022.html