Educator - web: page elements and attributes
1. Structural elements
1.1 related concepts of document structure elements
1.1.1header element
The header element is a structural element that represents the header. It is usually used to place the title of the whole web page or a content block in the page, but it can also contain other elements, such as title (< H1 > ~ < H6 > ...
Posted by mchaggis on Mon, 29 Nov 2021 10:28:23 -0800
Setting the Nginx server configuration block on CentOS 8
Introduction: A server configuration block is an Nginx instruction, which defines the settings for a specified domain name and allows you to run multiple websites on a single server. For each website, you can set the root directory of website files (the directory containing website files), create an independent security policy, use diffe ...
Posted by greepit on Mon, 29 Nov 2021 08:22:59 -0800
Front end development ES6
It is recommended that front-end developers use ES6 for development, which can reduce the amount of code and increase readability.
1. About value
const obj = {
a:1,
b:2,
c:3,
d:4,
e:5,
}
Make complaints:
const a = obj.a;
const b = obj.b;
const c = obj.c;
const d = obj.d;
c ...
Posted by predhtz on Mon, 29 Nov 2021 08:07:23 -0800
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
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