You should try these 8 new JS functions
Abstract: This paper mainly introduces several proposals that have entered stage 4, which are expected to be gradually incorporated into the standard in 2022.
This article is shared from Huawei cloud community< 8 new JavaScript features you should try in 2022 >, author: front end picker.
Since the joint release of JavaScript by Netscape a ...
Posted by metalblend on Tue, 18 Jan 2022 22:12:51 +0100
[solid foundation of vue.js] nodejs introduction npm cnpm installation and uninstallation module
nodejs understanding
Just as java needs a jvm virtual machine to run, js execution can be executed in the browser. Usually, we execute through the chrome console command window, that is, the browser supports js operation. nodejs is such a platform that can run js without the browser
node is a javascript running environment (platform) used to ...
Posted by hooch_au78 on Tue, 18 Jan 2022 21:43:52 +0100
Use of vuex in vue
Vuex
1. Concept
A Vue plug-in that implements centralized state (data) management in Vue. It centrally manages (reads / writes) the shared state of multiple components in Vue applications. It is also a way of communication between components and is suitable for communication between any components
2. When to use?
When multiple components ne ...
Posted by trixx on Tue, 18 Jan 2022 18:20:17 +0100
On JavaScript Design Pattern
Preliminary study on design mode
Singleton mode
Variables are defined internally and judged by closures. If they do not exist, new variables are generated
Strategy mode
Consistent with the principle of single responsibilityAdd or reduce strategies without major changes to the original codeThere are many ways to deal with the same ...
Posted by karldenton on Tue, 18 Jan 2022 13:15:47 +0100
TS learning notes
1, Data types in Ts
Before introducing data types, first explain the declaration and assignment methods in ts. 1) Declare first and assign value when necessary:
let c:number;
c=5
2) Direct assignment after declaration
let c:boolean = true;
3) After direct assignment, the variable type defaults to the type at the first assignment an ...
Posted by donbre on Tue, 18 Jan 2022 10:12:03 +0100
Advanced TypeScript types you need to know (summary)
preface
For students with JavaScript foundation, it is actually easy to get started with TypeScript. You can gradually transition from JS application to TS application by simply mastering its basic type system.
// js
const double = (num) => 2 * num
// ts
const double = (num: number): number => 2 * num
However, when the application b ...
Posted by sylesia on Tue, 18 Jan 2022 06:33:29 +0100
Component library actual combat | using vue3+ts to realize global Header and list data rendering ColumnList
๐ผ๏ธ preface
Recently, I used vue3 and ts to play with some gadgets. I found that a common requirement in normal development is the rendering of data list. Now I study again and find that many design specifications and logic I considered when learning vue2 are not particularly appropriate.
Therefore, write this article to record the desig ...
Posted by DanArosa on Mon, 17 Jan 2022 22:47:47 +0100
[React basic series] what is JSX and how to use JSX
React is a library developed, open-source and maintained by facebook, and the meaning of react is to use JavaScript to realize user interaction - a JavaScript library for building user interfaces.
Therefore, in essence, React is a library, and its role is to use JavaScript to realize user interaction.
Its core idea is to use JavaScript to ...
Posted by Copyright on Mon, 17 Jan 2022 22:29:55 +0100
[practical notes] how to build rich text for your blog?
Blog address
Address of my personal blog ๐๐ Click to enter
Open source project address
This is my project of an open source collection website Project address ๐๐ Click to enter , it can be directly set as the browser home page or desktop shortcut for use. I am using it and maintain it for a long time.
Completely open source, you can re ...
Posted by JellyFish on Mon, 17 Jan 2022 19:07:47 +0100
JavaScript notes how to write JavaScript
Three principles for writing JavaScript: each responsible component encapsulation process abstractionEach party shall take its own responsibilityHTML/CSS/JavaScript each has its own responsibilitiesHTML -> Structural ; CSS -> Presentational ; JavaScript -> BehavioralUnnecessary direct manipulation of styles by JS should be avoidedYou c ...
Posted by mashamit on Mon, 17 Jan 2022 18:41:19 +0100