vue takes notes the next day_ vue basic syntax
1. Questions left over from last lesson:
There is a description in the official document about methods: Note that arrow functions should not be used to define method functions (for example, plus:()=>this.a++) Question 1: Why can't arrow functions be used in methods? Yes, you can, but you can't use this. There's a problem this is the obj ...
Posted by bur147 on Mon, 29 Nov 2021 10:24:32 -0800
Front end coding protocol (html + javascript + css + vue)
statement
The statute draws entirely on this big man Collated content , I read it through 4 or 5 times. Personally, I feel that it is very good and comprehensive. But there are also some spelling and logic problems. On this basis, I made some corrections. Follow up meeting 2.2.4 notes Supplement the standard note format.
Front end code sp ...
Posted by COOMERDP on Mon, 29 Nov 2021 03:54:01 -0800
Processing of a complex form in Vue (sub form nesting)
This demand is a complex data entry form (as shown in the figure below), which is divided into five steps. The sub forms of steps 1, 2, 4 and 5 are relatively simple input and selection. The most complex step is step 3: it is divided into six organization types. Each type can add (up to 10) and delete its organizations (companies), and each org ...
Posted by irish21 on Sun, 28 Nov 2021 14:26:46 -0800
[Vue learning notes _17] Vuex status management
Supporting executable code example = > GitHub
Vuex first met
Vuex : a state management mode specially developed for Vuejs applications, which is applied to multi interface state management. It uses centralized storage to manage the state of all components of the application, and uses corresponding rules to ensure that the state changes ...
Posted by spamyboy on Sun, 28 Nov 2021 08:41:57 -0800
vue3 quick start
1. Ecology and advantages of vue3
Community ecology - gradually improvedOverall optimization - Performance Optimization / TS support optimization / combined API blessingMarket use - some companies with radical technology selection have used vue3 in the production environment
Community ecology
Component (plug-in) nameOfficial addressbrief i ...
Posted by LiLaaron on Sun, 28 Nov 2021 05:41:31 -0800
In Vue, the actual application of Vue.extend (using Vue.extend to encapsulate a MessageBox component similar to Element)
1, About vue.extend (options)
Explanation on the official website: use the basic Vue constructor Vue.extend to create a "subclass". A parameter is an object that contains component options. Note - in Vue.extend(), the data option must be a function.
Generally, we will use Vue.extend to receive a component object to create a construc ...
Posted by AKalair on Sat, 27 Nov 2021 22:22:16 -0800
11 v-if better color, ternary operator
scene
The template uses conditional judgment to control the style of the page, which is the most common application. Vue provides two basic methods, one is the ternary operator we have talked about, and the other is v-if.
Ternary operators control template styles
Let's first look at the use of ternary operators to control the style of te ...
Posted by romano2717 on Fri, 26 Nov 2021 01:49:18 -0800
vue 3 learning notes -- Usage and principle of provide and inject
props and emit are usually used when transmitting data between parent and child components. props is used when transmitting data from parent to child. If a parent component transmits data to a child component, it needs to be transmitted to the child component first, and then to the child component. If multiple child components or multiple child ...
Posted by sklein99 on Thu, 25 Nov 2021 20:09:07 -0800
5 common errors when using Promise
By Ravidu Perera Translator: front end Xiaozhi Source: medium
There are dreams and dry goods. Wechat search [Daqian world] pays attention to this bowl washing wisdom who is still washing dishes in the early morning.
This article GitHub https://github.com/qq449245884/xiaozhi It has been included. There are complete test sites, materials ...
Posted by ravi_aptech on Thu, 25 Nov 2021 18:27:29 -0800
W3C standard induction
W3C standard induction
reference resources: https://www.w3cschool.cn/xuexiw3c/xuexiw3c-standards.html
1. Discard font label
In the future, we will discard the font tag. The new page should not appear again. For example, the existing old page should also be replaced as much as possible during modification. Alternative method: < span cl ...
Posted by zingbats on Wed, 24 Nov 2021 00:54:35 -0800