Vue - how Vue monitors data, collects data from forms

catalogue 1, How Vue monitors data     1.Vue monitoring data range     2. How to monitor data in objects     3. How to monitor the data in the array     4. When modifying an element in the Vue array, you must use the following methods:     5. Case display 2, Collect form data 1, How Vue ...

Posted by wendu on Tue, 07 Dec 2021 01:41:54 +0100

The observer mode realizes picture preloading and opens the event listening interface

reference resources demand Realize the picture preloading function. When each picture is loaded successfully and failed, the loadProgress and loadError functions need to be called respectively; After the image is loaded, you need to call the loadComplete function. Optional: The above three interface functions can be switched at any time and ...

Posted by Wizard4U on Thu, 02 Dec 2021 16:57:42 +0100

Vue learning notes

Event binding (v-on) Example: <div class="app"> <!--@yes v-on:Short form of--> <button @click="myclick">click me</button> </div> var vm = new Vue({ el:'.app', data:{ }, methods:{ myclick:function(){ console.log('Hello!') //Click the button and the console will print ...

Posted by diagnostix on Wed, 01 Dec 2021 11:23:15 +0100

vue3 learning notes - script setup syntax sugar is used to know how cool it is

When you first use the script setup syntax, the editor will prompt that this is an experimental attribute. If you want to use it, you need a fixed vue version. At the end of June, the proposal was officially finalized. It will continue to be used in v3.1.3, but there will still be hints of experimental proposals. In V3.2, the hints will be remo ...

Posted by guitarist809 on Mon, 29 Nov 2021 07:33:37 +0100

vue data bidirectional binding principle summary plus complete code

Step by step implementation of bidirectional data binding 1. reduce() method of array Application scenario: the initial value of the next operation, which depends on the return value of the last operation (1) Cumulative calculation of array Common implementation const arr = [1,2,3,4,5,6] let total = 0; arr.forEach(item=>{ total+=item ...

Posted by benyhanna on Sun, 28 Nov 2021 12:47:16 +0100

"Fashion learning Vue by rocket" -- Chapter 13: components in Vue (difficulties)

There are tens of millions of front-end frames, and the unique vue accounts for half I'm the fashion. Let's take a rocket to learn Vue                                    Chapter 1 ...

Posted by lazersam on Fri, 26 Nov 2021 21:42:40 +0100

"Fashion learning Vue by rocket" -- Chapter 11: binding syntax of user-defined components and classes in Vue

There are tens of millions of front-end frames, and the unique vue accounts for half I'm the fashion. Let's take a rocket to learn Vue   "Fashion learning Vue by rocket" -- Chapter 11: binding syntax of user-defined components and classes in Vue The last chapter recalled: "let me see it more!" the fashion said a litt ...

Posted by hideous on Fri, 26 Nov 2021 17:59:45 +0100

[Don't come to me after reading this] Explain the Vue data two-way binding principle

Preface After sorting out my own understanding of the principle of two-way binding of Vue data after learning, I by the way exclamate that Yuyuxi is too strong. If there are any errors, you are welcome to correct them. 1. Review of Basic Knowledge 1.1 Get attribute values chained using reduce method If the reduce method is not yet used ...

Posted by hoogie on Thu, 25 Nov 2021 18:05:48 +0100

Implementation principle of keep alive

1, Foreword The contents of this paper include: Keep alive usage: dynamic component & Vue routerKeep alive source code analysisHook of keep alive component and its package componentRendering of keep alive component and its package component 2, Introduction and application of keep alive 2.1 what is keep alive Keep alive is an abstract ...

Posted by adyre on Wed, 24 Nov 2021 23:39:07 +0100

Vue3 learning notes -- how does vue3's setup realize the responsive function?

Setup is used to write composite APIs. Internal data and methods can only be used after passing return. Previously vue2, the data returned by data can be directly bound in both directions. If we bind the data types in setup directly in both directions, it is found that variables cannot respond in real time. Next, let's look at how setup impleme ...

Posted by stormszero on Mon, 22 Nov 2021 05:42:48 +0100