vue routing cache ultimate solution

preface There is often such a demand in the business. When the page jumps, the state and data of the previous page are maintained to facilitate processing when returning For example, a - > B needs caching, and a - > C does not need caching Most online examples need to deal with business components, which is very unreasonable Ther ...

Posted by adders on Sun, 26 Sep 2021 02:48:24 +0200

Asynchronous learning

(1)promise 1: Implementation principle It is mainly realized through the callback function, which is encapsulated internally. The asynchronous code is expressed in the form of synchronization through the chain call of then method. 2:promise features There are only three states: wait, success and failure The state can only be changed once 3: pro ...

Posted by tidou on Wed, 22 Sep 2021 02:53:11 +0200

Several ways to develop and modify the source code of webpack plug-in

preface Webpack is an indispensable tool in our daily work. It is inevitable that sometimes we need to personalize the code compiled by webpack, so it needs to be completed by webpack plug-in or modifying its code. This article focuses on some ways of developing and modifying the source code of webpack plug-in. I wrote it a long time ago webpa ...

Posted by apoc- on Tue, 21 Sep 2021 11:49:05 +0200

Vue3 component communication

Vue3 component communication 1.props / $emit The parent component passes data to the child component through props, and the child component can communicate to the parent component through $emit. ① Parent component passes value to child component How to obtain the data in the parent component section.vue in the sub component article.vue artic ...

Posted by engkeb0i on Mon, 20 Sep 2021 08:48:12 +0200

01 - encounter Vue3 development

preface This article comes from the Vue3 + Ts course of teacher coderwhy Attach link: https://ke.qq.com/course/3453141 Who can refuse a teacher who is 100% praised and adds classes catalogue preface Meet Vue How to import Vue Vue Beginner - counter case Declarative programming and imperative programming MVVM model template attribute ...

Posted by paladaxar on Sun, 19 Sep 2021 20:11:13 +0200

Spring boot develops large file upload service and breakpoint continuation function

Recently, I received a commercial project, which involves the problem of large file upload server and breakpoint continuation. I saw a good technical article to share with you. Recently, due to the product needs of the R & D group where the author works, it is required to support high-performance large file http upload and http breakpoint ...

Posted by NiGHTFiRE on Sat, 18 Sep 2021 11:22:42 +0200

General CRUD operation of MyBatisPlus series

Part I: Environment integration of MyBatisPlus series 1, Getting started HelloWorld 1. Universal CRUD (1) Ask questions: Suppose we already have a tbl_employee table, and the corresponding entity class employee already exists, which implements TBL_ What do we need to do to CRUD the employee table? (2) Implementation method: Based on My ...

Posted by slibob on Mon, 13 Sep 2021 05:09:37 +0200

Take beginners to Vue3

Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it preface Tip: Here you can add the general contents to be recorded in this article: With the continuous development of artificial intelligence, machine learning technology is becoming more ...

Posted by gunabalans on Sat, 11 Sep 2021 00:47:04 +0200

uniAPP Android internal update and hot update

overview: 1. Package the uni app into apk or wgt files, and use the plus.runtime.getProperty method to obtain the version number of local application resources. 2. Call the back-end interface, get the version number specified by the back-end and compare it with the version number obtained earlier. If it is inconsistent (you can also judge whet ...

Posted by Sikk Industries on Thu, 09 Sep 2021 21:38:42 +0200

JavaScript Small Interview~~JavaScript implements lazy picture loading and solves the problem of too much loading in many ways

Pictures are lazy to load, that is, when scrolling a page, pictures are not loaded when they do not appear in the visible area, but only when they appear in the visible area. Idea: Through the above paragraph, you need to know to lazy load pictures: Bind Scroll EventVisible Window Height (VH)Picture Element Distance Visible Local Top Distance ...

Posted by jvquach on Tue, 07 Sep 2021 02:28:34 +0200