react introduction must know and know knowledge points
Component communication
props
Applicable to parent-child component communication
Parent component - > child component The parent component passes the parameters to be passed to the child component through key={xxx}, and the child component obtains the parameters through this.props.key
import React from 'react'
import Son from './son'
cla ...
Posted by kenshejoe on Mon, 29 Nov 2021 07:43:05 -0800
js+css+html to make a simple message board
1 case description
Using JavaScript, css and html to make a simple message board can also be regarded as a simple comment area.
It is required to enter some text in the page text box, click the "publish" button to display the entered text below, re-enter some text, and then click publish to display the newly published content at ...
Posted by iainr on Mon, 29 Nov 2021 06:40:37 -0800
ES6 added API: String
This article introduces several new functions for unicode strings in ES6.String.prototype.codePointAtFunction type:(index?: number)=> number|undefinedcodePointAt is a prototype function that returns the code point value of the character in the string according to the passed in index parameter. This method can recognize 4-byte code points in ...
Posted by thetechgeek on Mon, 29 Nov 2021 04:43:24 -0800
Front end coding protocol (html + javascript + css + vue)
statement
The statute draws entirely on this big man Collated content , I read it through 4 or 5 times. Personally, I feel that it is very good and comprehensive. But there are also some spelling and logic problems. On this basis, I made some corrections. Follow up meeting 2.2.4 notes Supplement the standard note format.
Front end code sp ...
Posted by COOMERDP on Mon, 29 Nov 2021 03:54:01 -0800
TypeScript learning notes
Advantages of TypeScript
Support ES6 specificationPowerful IDE supportAngular2 development language
IDE advantages
Type check
Typescript online complier
http://www.typescriptlang.org/play/index.html
Typescript local complier
Install node.js, npm
npm install typescripttsc --version
New string features
Multiline string``
...
Posted by quicknb on Mon, 29 Nov 2021 02:53:56 -0800
04_JavaScript data structure and algorithm queue
JavaScript data structure and algorithm (IV) queue
Cognitive queue
Queue is a linear table with limited operation. Its feature is first in first out. (FIFO: First In First Out)
Limitations:
Deletion is only allowed at the front of the table.Insert operations are only allowed at the back end (rear) of the table.
Scenes similar to queue stru ...
Posted by unknown on Sun, 28 Nov 2021 23:13:14 -0800
ES6 learning Chapter 7 function extension
prefaceThis chapter introduces the extension of functions. Some knowledge that is not commonly used can be understood.Link to the original text of this chapter: Extension of function. Default values for function parametersES6 allows you to set default values for function parameters, that is, write them directly after the parameter definition.Wh ...
Posted by ace21 on Sun, 28 Nov 2021 19:13:09 -0800
Introduction to Redux
Redux learning notes
There is no necessary relationship between redux and react. redux can be applied to various frameworks, including jquery and even js. However, redux and react are more matched. redux also launched react redux, which is specially used for react.
1. Overview of Redux
Redux is a JavaScript container for global state managem ...
Posted by ianitm on Sun, 28 Nov 2021 15:49:11 -0800
[Vue learning notes _17] Vuex status management
Supporting executable code example = > GitHub
Vuex first met
Vuex : a state management mode specially developed for Vuejs applications, which is applied to multi interface state management. It uses centralized storage to manage the state of all components of the application, and uses corresponding rules to ensure that the state changes ...
Posted by spamyboy on Sun, 28 Nov 2021 08:41:57 -0800
vue3 quick start
1. Ecology and advantages of vue3
Community ecology - gradually improvedOverall optimization - Performance Optimization / TS support optimization / combined API blessingMarket use - some companies with radical technology selection have used vue3 in the production environment
Community ecology
Component (plug-in) nameOfficial addressbrief i ...
Posted by LiLaaron on Sun, 28 Nov 2021 05:41:31 -0800