Vite2 + Vue3 + TypeScript + Pinia build an enterprise level development scaffold [worth collecting]

Hello, everyone. I'm xy???. It has been a year since I first came into contact with vue3 version. Due to vue3 With the release of version 2, the experimental mark of < script setup > has been removed, and many companies have started to use vue3 2 development project. This article is to help you how to quickly use vue3 x. typeScript, vite ...

Posted by limitedreality on Thu, 03 Mar 2022 17:45:21 +0100

React page does not refresh

Today, I write about the react project of the laboratory. One of the States is an array (be careful when you see that the state is an array. There are many pits!!!) After operating on the array, the page does not refresh. After repeated tossing, it is reduced to the following code: import React, { Component } from 'react' import { Table, Tag, ...

Posted by JustinMs66 on Thu, 03 Mar 2022 17:38:18 +0100

vite + vue3 + setup + pinia + ts project practice

introduce A project developed by using vite + vue3 + pinia + ant design Vue + typescript complete technical route, with the launch of second level development update, the new vue3 composition api combined with setup to enjoy the silky development experience, the new pinia state manager and excellent design experience (1k size), the barrier fre ...

Posted by Ionisis on Thu, 03 Mar 2022 16:12:00 +0100

React learning notes - extended content

1. setState There are two ways to update the state using setState. Object expression is the abbreviation of function expression (syntax sugar). Use principle (not required): The new state does not depend on the original state = = > use objectThe new state depends on the original state = = = > use functional expressionIf you need to ge ...

Posted by Yaak on Thu, 03 Mar 2022 15:52:58 +0100

Without networking, use electron builder to quickly package all platform applications

prefaceElectron is becoming increasingly popular because it is easy to use and has good support for various operating platforms.Today, I'd like to share my experience on how to use a set of code to quickly package and generate installation packages for mainstream platforms.Project installationFirst, use what I introduced earlier Tips for improv ...

Posted by pacome on Thu, 03 Mar 2022 15:33:23 +0100

Implementation principle and application of CountDownLatch

1. Working principle of countdownlatch CountDownLatch functions as a timer in multithreaded concurrent programming, and maintains a count variable, and its operations are atomic operations. This class mainly realizes its functions through countDown() and await(). First, it establishes a CountDownLatch object, and the incoming parameter is the ...

Posted by Fatboy on Thu, 03 Mar 2022 14:58:55 +0100

Callback function and callback function

catalogue 1, Promise object 1. Callback function 2. Synchronization task 3. Asynchronous task 4. Callback Hell: the case of nesting callback functions in callback functions is called callback hell (an operation method to realize the sequential execution of code) 5. Solution to callback hell 6. About Promise objects 2, async and await fu ...

Posted by luvburn on Thu, 03 Mar 2022 14:31:07 +0100

Detailed explanation of event delegation or event agent in js

1. Overview: (1) What is event entrustment? It also has a name called event agent In terms of JavaScript Advanced Programming: event delegation is to use event bubbling and specify only one event handler to manage all events of a certain type. What does that mean? The leaders on the Internet basically use the same example of event entrustment ...

Posted by kapishi on Thu, 03 Mar 2022 11:34:04 +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

uniapp development applet obtains the name of the positioning city according to the longitude and latitude

1. Preface If you have been in contact with wechat applets, you know that operations involving some user sensitive information (such as positioning, accessing personal information, etc.) require user authorization. When we use applets, we may also see the scene that the authorization box pops up before an operation, which requires the user' ...

Posted by wittanthony on Thu, 03 Mar 2022 09:02:13 +0100