How to observe the execution of methods in parent components in child components

We may encounter the following situations:At present, we need to write an auto complete component. When the content entered by the user is recorded in the database, it will be saved according to the record. If there is no record, the content entered by the user will be stored in the database as an entity before saving. But we certainly can't st ...

Posted by GundamSV7 on Fri, 04 Mar 2022 07:14:23 +0100

Use of the latest code generator (3.5.1 +) of mybatis plus

1. Introduce dependency: <!--mybatisPlus--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.3.4</version> </dependency> <!--mybatis-plus Code generator --> <dependency> <groupId>com.baomidou</g ...

Posted by Thunderfunk on Thu, 03 Mar 2022 09:19:01 +0100

TypeScript advanced usage

hi, bean skin powder, meet you again today. This issue shares the advanced use of TypeScript brought by bytedancer "little blacksmith in Milan",It is applicable to students who have known TypeScript or have actually used it for a period of time,This article systematically introduces the function points of common TypeScript from the pe ...

Posted by lutzlutz896 on Thu, 03 Mar 2022 08:10:12 +0100

Interpretation of Vue source code -- example method

When learning becomes a habit, knowledge becomes common sense. Thank you for your likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.prefaceLast article Interpretation of Vu ...

Posted by jikishlove on Mon, 28 Feb 2022 01:45:32 +0100

Pre parsing (no change)

Pre analysis Pre parsing: read through and explain the code before all the code is executed, and then execute the code after the explanation is completed Function call problem: When a function is defined, the code put into the "box" will not be executedThe code is executed only when the function is called Pre parsing has two parts ...

Posted by crouchl on Sun, 27 Feb 2022 07:31:17 +0100

Use and understanding of generics

1. What makes generics? 2. Why use generics? 3. How to use generic [class, interface, method] 4. Limitations of generics. What makes generics?  1. Generic: when a class is defined, it does not set the data type for the attribute and method [return value, parameter] in the class. When you create an object of this class, you specify t ...

Posted by cape on Sat, 26 Feb 2022 02:36:14 +0100

[process + vilint] how to build a series of projects

1, Create project sectionCreate a new project using Viteyarn create vite2, ESlint usage sectionAdd ESlintyarn add eslint --devInitialize ESlintyarn run eslint --initAt this time, there will be eslint verification when writing code. Let's configure the verification command of the whole projectConfigure package json "scripts": { //... ...

Posted by engkeb0i on Fri, 25 Feb 2022 08:45:20 +0100

Vue3 + Vite2 + TypeScript + Pinia(Vuex)+JSX build an enterprise level development scaffold [out of the box]

With the popularity of Vue3, more and more projects have begun to use Vue3. In order to quickly enter the development state, I recommend a set of enterprise level development scaffolding out of the box. The framework uses: Vue3 + Vite2 + TypeScript + JSX + Pinia(Vuex) + Antd. If you don't talk much nonsense, just start rolling.The scaffold is d ...

Posted by adaykin on Fri, 25 Feb 2022 03:17:59 +0100

Interpretation of Vue source code -- global API

When learning becomes a habit, knowledge becomes common sense. Thank you for your likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.targetDeeply understand the implementati ...

Posted by zeth369 on Fri, 25 Feb 2022 02:24:52 +0100

Interpretation of Vue source code -- asynchronous update

When learning becomes a habit, knowledge becomes common sense. Thank you for your likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.prefacePrevious Interpretation of Vue so ...

Posted by Grim... on Thu, 24 Feb 2022 02:08:32 +0100