Home > front end >  The small white one, learned the vue.
The small white one, learned the vue.

Time:10-28

Before learned HTML + CSS, js, but I don't quite understand the vue is why, from the web front end to app development, vue is what what is the relationship between language and js, a white one, and light for me, please

CodePudding user response:

Now you learn how to operate have to dom right, a data change you want to change to dom, vue essence is js wrote this MVVM framework, the vm design patterns can make people focus on business logic, and don't need to operate the dom

CodePudding user response:

Positive solution, packaging,

CodePudding user response:

refer to the second floor zhtoad response:
truth, packing up,

Vue is equivalent to a class encapsulates the js

CodePudding user response:

1/f, reference principle of the fire response:
now you learn how to operate have to dom right, a data change you want to change to dom, vue essence is js wrote this MVVM framework, the vm design patterns can make people focus on business logic, without the need to operate dom

I'm still too small white, at present the framework to understand nothing concept

CodePudding user response:

ECMAScript is a standard language (hereinafter referred to as es),
JavaScript implements es standard, in view of the dom API browser extensions, bom API,
Some single Page Application (SPA) Simple Page Application, abbreviation, is only an HTML file, Page routing all done by js,
In order to achieve SPA, you need to js can use, like pieces of brick increases with the increasing the mutual influence (i.e., front-end module),
Then, use js building large systems, and what is the distinguishing feature of HTML? With a browser can browse, so many people like it the possibility of a cross-platform, there are many front frame, various,
Various architectural thoughts, tested, and eventually the MVVM is regarded as development SPA, best practices in the field of front end, specific please baidu,
And the design of the Vue with reference to the MVVM thought,

CodePudding user response:

Js is dom operation, vue operating data,

CodePudding user response:

The essence of the vue or HTML + CSS, js, he is a framework that just makes you write more convenient, because he has realized the two-way data binding, to vue website have a look at it, speak is very clear,

CodePudding user response:

refer to 7th floor xiaosailun response:
the essence of the vue or HTML + CSS, js, he is a framework that just makes you write more convenient, because he has realized the two-way data binding, take a look at the vue website, or speak clear,

My sophomore year was too white, not very understand the two-way data binding, can simple summarize in a few words

CodePudding user response:

Bad to look at the example of long short is change a js object value, on the page elements (such as input) will change, if the input values from the page (e.g., input) js object value will be changed, and the process framework is done for you, HTML + CSS + js, you have to write code to fix the https://cn.vuejs.org/v2/guide/instance.html#%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA-Vue-%E5%AE%9E%E4%BE%8B

CodePudding user response:

Js is dom operation, vue is virtual dom operation, performance improvement is not a packet
  • Related