Vite + Vue3 initial experience - Vue3

In the previous article Vite + Vue3 initial experience - vite In my blog, I feel the improvement of runtime efficiency brought by Vite. In this issue, I will feel the new change brought by Vue3 - separation of concerns.Todo List designIn this experience of Vue3, I want to be a functional module that can experience (part of) the new features of ...

Added by devdavad on Thu, 27 Jan 2022 15:21:52 +0200

TypeScript learning notes

7,Typescript Official documents Atwood's law Jeff Atwood, one of the founders of Stack Overflow, put forward the famous Atwood law in 2007 any application that can be written in JavaScript , will eventually be written in JavaScript. Any application that can be implemented using JavaScript will eventually be implemented using JavaScri ...

Added by menelaus8888 on Thu, 27 Jan 2022 14:14:45 +0200

node. JS express modular routing and request parameters

preface In project development, it is not recommended to mix routes with different functions and store them in one file, because with more and more types of routes, it will be very troublesome to manage. In order to facilitate the management of routing, express Router () implements modular routing management. Method for creating secondary ...

Added by hardyvoje on Thu, 27 Jan 2022 12:16:50 +0200

JS basic syntax

Basic JavaScript syntax (I) 1, Basic concepts 1. Programming Programming: the process of making a computer write program code in a programming language to solve a problem and get the results Computer program: it is a set of instructions for a series of problems executed by the computer, and all the programs are written in the language we maste ...

Added by dark_destroyer on Thu, 27 Jan 2022 11:41:11 +0200

vue learning - slot

Because I feel confused when looking at the source document Instead, collect blogs online and understand them thoroughly Reprinted from: https://www.cnblogs.com/chinabin1993/p/9115396.html Vue slot is an essential part of learning Vue. When I first came into contact with Vue, I knew a little about these, especially the scope slot. More and more ...

Added by sarun on Thu, 27 Jan 2022 10:50:09 +0200

vue learning - slot 2

Almost understood You can look at the previous article and this one Reprinted from: https://zhuanlan.zhihu.com/p/114502325?from_voters_page=true Recently, I was asked if I knew about vue slots. When I thought about it, I found that this thing seems to be rarely used. So I sorted out some usage of slot. Slot (the parent component inserts content ...

Added by lunarul on Thu, 27 Jan 2022 10:44:03 +0200

Use js to download the current image

At the front end, we sometimes display the current page as a picture, such as orders and logistics information. At this time, we need not use the screenshot tool to forward, or take photos on the mobile phone. If we use js to download the current html into a picture, how can we do it Here is a tool, html2canvas, which is easy to use The usage ...

Added by tidalik on Thu, 27 Jan 2022 09:37:25 +0200

Common methods of js array

1. join() join is to convert an array into a string, and then specify a connecting character for it. The default is comma (,) Writing format: join(""), write a string in parentheses ("quotation marks required"), var arr = [1,2,3]; console.log(arr.join());  // 1,2,3 console.log(arr.join("-")); // 1-2-3 console.log(arr); ...

Added by Pha on Thu, 27 Jan 2022 09:21:04 +0200

Grail layout and twin wing layout

Grail layout Requirements: 1. Fixed width and height on both sides, adaptive in the middle. 2. For the three column layout, the middle column is loaded and rendered first. Technique: negative value of float + position + margin left DOM structure <div class="container"> <div class="main">main</div> <div class="left" ...

Added by aminnuto on Thu, 27 Jan 2022 06:13:58 +0200

Intensive reading of zustand source code

zustand It is a very fashionable state management library and the fastest growing React state management library of Star in 2021. Its concept is very functional, and the API design is very elegant, which is worth learning.summaryFirst introduce zustand How to use.Create storeCreate a store through the create function. The callback can get the g ...

Added by aisalen on Thu, 27 Jan 2022 05:24:32 +0200