suddenly thought of the idea has not really applied to the actual project, but for the use of Vue friends to provide a way of thinking.
Import data from ' ... /assets/js/data '
export default{
data () {
return{
menu:data.menu,
Inde: "",
Row: "",
Clomu: ""
}
},
computed:{
isfull:function () {
alert ();
Return
}
},
mounted () {
},
methods:{
domclick:function (i) {
if (this.inde== =i) {
this.inde= "";
} else {
This.inde = i;
}
},
subclick:functi
First, two-way data binding, one of the weapons separated, different points, ng large, more complex functions, sometimes used on the mobile phone may not be very good, and Vue is the mini version of the angular, like, JQ and Zepto difference1.controller, corresponding to the Vue inside is the new Vue ({el:}), this El,
. Learning once, written anywhere [reusability]: We do not make assumptions about the rest of your technology stack, so you can develop new features in react without rewriting existing code. React can also use node and function mobile applications on the server. Use react native for rendering. Vue is a progressive framework used to build user interfaces. Unlike other large frameworks, vue is designed to be
front-end popular frame competition
Angular
Vue
React
Ant-design
AngularjsAngular is a framework for MVVM. It's all about MVVM. The most important scenario for angular is a single-page application, or a large number of data binding scenarios.Characteristics
Bidirectional data binding
IOC Dependency Injection
Instructions
Vue is only a view layer in MVVM, just a jquery-like tool library, not a framework, but a angular MVVM framework. Vue's dual Xiangbangding is based on the Getter/setter in ES5, and angular instead of implementing a set of template compilation rules, need to do so-called "dirty" check, Vue do not need. As a result,
1, Vue and react, angular principle comparison:
(1) Angular with Dirty check
In angular 1, when watcher becomes more and more slow, because every change in the scope, all watcher are recalculated. Also, if some watcher trigger another update, the Dirty Check Loop (Digest cycle) may run several times.
A hyperlink in a tag needs to add http://or the page cannot be found.An IFrame adds a tag, and the target property in the a tag controls the page that is about to be opened, which is displayed in that position._blank opens the linked document in a new window. _self Default. Open the linked document in the same frame. _parent Open the linked document in the parent frameset. _top Open the linked document throughout the window. FrameName opens the linked
Sort it out ~
1. Call Baidu map in vue
First of all, you need to apply for a Baidu key (very simple, not to mention)
1、introduce Baidu map javascript API interface in the index.html file: 2. In bulid/webpack. base. conf. configure bmap In the JS configuration file. exports and entry level
3. Import bmap in the map component:Import bmap from 'bmap'
4. Create a container to display Baidu maps.
5. There is also a good map Generator for white rabbit, whi
installed via NPM, Bower, or Duo, without forcing all of your code to follow angular's rules and more flexible usage scenarios.
Disadvantages:
Newborn: Vue.js is a new project, released on March 20, 2014 0.10.0 Release Candidate version, currently GitHub above the latest is 0.11.4 version, not angular so mature.The impact is not very large: Google a bit, there are about vue.js diversity or the richness of less than some other well-known libraries.D
Troubleshooting when installing the Vue scaffolding CLI using NPM
Recently prepared to use NPM to install Vue learning, by watching Vue's introduction, it can be seen that Vue is similar to the recently popular MVVM framework Angular.js, which has a relatively steep learning curve, so that you can learn vue.js first with insufficient time.Using NPM to install the
AngularjsSame point:All support directives: built-in instructions and custom directives.Filters are supported: Built-in filters and custom filters.Both support bidirectional data binding.Low-end browsers are not supported.Different points:1.AngularJS has high learning costs, such as increased dependency injection features, and vue.js itself provides a simple and intuitive API.2. In performance, ANGULARJS relies on dirty checking of data, so the more watcher the more slowly.Vue.js uses dependenc
Vue.js is an open source JavaScript framework that helps developers to build beautiful WEB interfaces. When used in conjunction with other network Tools, Vue.js's excellent functionality will be greatly enhanced. Today, many developers have begun to use Vue.js to replace Angular and React.js.So for Angular and react.js, how do developers choose?We will introduce and contrast these two frameworks in depth.Vu
Learn a little bit of programming every day PDF ebook, video tutorial free download:Http://www.shitanlife.com/codeVue.js is an open source JavaScript framework that helps developers to build beautiful WEB interfaces. When used in conjunction with other network Tools, Vue.js's excellent functionality will be greatly enhanced. Today, many developers have begun to use Vue.js to replace Angular and React.js.So for Ang
Summary of vue interview questions and vue interview questions
What is the underlying principle of vue?
Communication between vue components?
How many methods are used to determine the Data Type in JS?
The most common judgment method is typeof.
Method for judging known object types: instanceof
Constructor: constructor
VueVue in recent years special attention, three years ago when Angularjs occupied the front-end JS frame market for a long time, and then react framework turned out, because it has a feature is virtual DOM, from the performance of rolling angularjs, this time, vue1.0 quietlyThe advent of its elegant, lightweight also attracted a part of the user, began to receive attention, 16 Mid, VUE2.0, this time Vue no matter from the performance, or from the cost
Vue how excellent with the whole family barrels do the project how good and so on I will not talk about, straight to the subject.One, VueSeries one has built the Vue project with VUE-CLI, and here does not repeat it.Second, Vue-routerThe routing of Vue, presenting the docume
;Features: Hash although in the URL, but not included in the HTTP request, to guide the browser action, the server is not safe and useless, hash does not reload the page.History Mode:The new feature of HTML5 is used in history, and two new methods are provided: Pushstate (), replacestate () can make modifications to the browser Chronicle stack, and popstate the event's audible state change.What is the difference between Vue and
Tutorial on vue scaffold vue-cli, vue scaffold vue-cli
Vue-cli Template
The scaffolding project templates of vue-cli include webpack-simple and webpack.
The difference between the two is that webpack-simple does not include E
$http Services in 1.angular:$http. Get (url,{params:{parameter}}). Success (). Error ();$http. Post (url,{params:{parameter}}). Success (). Error ();$http. JSONP (url,{params:{wd: ', CB: ' Json_callback '}}). Success (). Error ();Note that the CB in the JSONP angular can only use Json_callbac$watch (who, what to do, false);Who is talking about who to listen to, what to do refers to the function that will be
Using angular-cli to publish the Angular application of i18n language, angular-clii18n
Add i18n to the html tag of the template
Use the ng command to generate the message. xlf file in xlf format
$ ng xi18n --output-path src/i18n
After the command is executed, the src/i18n/messages. xlf file is generated.
Copy message. xlf, message. en. xlf (English version) mes
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.