vue3 -- package of counting function components

preface This article will take you to use vue3 to encapsulate a global component to realize the counting function. I believe you will know its application scenario at a glance, that is, the common quantity selection module in shopping websites. Let's see how to implement it 1, Meaning of encapsulation There are many places to be used ...

Added by Walker33 on Wed, 22 Sep 2021 17:11:49 +0300

async and await usage

async and await are used in 21 Vue to realize synchronization and asynchrony The scenario is as follows: the current logic is to modify the series.data in echart's option according to the return data of the back-end API, and then execute the setOption method to render the icon. However, the problem is that the back-end API can return data norma ...

Added by Panz3r on Wed, 22 Sep 2021 11:22:20 +0300

Relearn vue - what are the common instructions for vue?

1, What are instructions? In vue, the instruction starts with v -, which is a special custom inter line attribute. The expected value of the instruction attribute is an expression. The responsibility of the instruction is to apply some behaviors to the DOM accordingly when the value of the expression changes. Only v-for is outside a class, fol ...

Added by Rovas on Wed, 22 Sep 2021 06:26:49 +0300

webpack -- five core concepts, basic usage and packaging

webpack webpack is a front-end resource component tool, a static module bundler. Compile syntax that the browser does not recognize into syntax that the browser can recognize From the perspective of webpack, many resource files (js/json/css/img/less) in the front end will be processed as modules. It will conduct static analysis according to t ...

Added by troublemaker on Tue, 21 Sep 2021 00:40:13 +0300

Vuejs Part 2 (Vue basic grammar)

1, Content overview: Interpolation operationBinding propertiesCalculation propertiesevent listeners Conditional judgmentLoop traversalStage casev-model 2, Interpolation operation - mustache syntax (Master) How to insert text data in data into HTML? As we have already learned, we can use Mustache ({}}) syntax (that is, double braces)Mustache ...

Added by FeralReason on Mon, 20 Sep 2021 20:27:46 +0300

Simple use of vuex

What is Vuex? Vuex is a state management pattern developed specifically for Vue.js applications. It uses centralized storage to manage the state of all components of the application, and uses corresponding rules to ensure that the state changes in a predictable way. Vuex is also integrated into Vue's official debugging tool devtools extension ...

Added by cpetercarter on Mon, 20 Sep 2021 10:22:12 +0300

Vue3 added: \ $attrs and \ $listeners attributes

Vue3 added: $attrs and $listeners attributes This article mainly introduces how to use the $attrs and $listeners attributes added in Vue v2.4. It is introduced in great detail through the example code, which has certain reference and learning value for your study or work. Friends in need, please follow me to learn. 1. Preface When multi-leve ...

Added by AndyB on Mon, 20 Sep 2021 00:56:22 +0300

day03 dark horse headline PC

###01 - feedback 02 review Scientific Internet access [the external chain picture transfer fails. The source station may have an anti-theft chain mechanism. It is recommended to save the picture and upload it directly (img-bSNxHjGn-1631678760356)(docs/media/1566714959699.png)] When you need to get dom elements, get instances of other groups ...

Added by NFWriter on Sat, 18 Sep 2021 14:42:07 +0300

SpringBoot practice: integration with Vue element admin login

The previous blog has the login integration of Vue element admin: Login integration This time, a simplified version is written. Only the user/login, user/logout and user/info interfaces required by the front end are needed. Login realizes token generation. Logout directly exits login without operation logic. info takes the token after vuex exis ...

Added by tnylsej on Fri, 17 Sep 2021 23:45:35 +0300

In simple terms, Vue responsive principle, MVVM implementation process

    I believe that when I first came into contact with Vue response, many students will think of the response principle when learning css, that is, make corresponding adjustments to the style of the content on the page according to different devices, different widths and different characteristics, while the response in Vue is not base ...

Added by czukoman20 on Fri, 17 Sep 2021 17:50:24 +0300