2021.12. Day_at Stage 52 of 17 Weeks 10 JS Notes
1. Review of Knowledge Points
1. Comparison of Arrays and Objects
Arrays store the same type of data
Objects store different types of data, out of order, descriptions of one type of thing
2. Object is of reference data type
3. Deep and Shallow Copies of Objects
4. Traversal of object for(var key in obj) where key is a string
...
Posted by SmoshySmosh on Tue, 21 Dec 2021 18:04:33 +0100
TypeScript basic data type
TypeScript: basic data type
Declare a variable in typescript and specify its type. In future use, the value of the variable can only be this type
String type
The string in ts can also use back quotation marks. The usage is the same as js
let a: string = "aaa";
Number type
The number type supports decimal, hexadecimal, binary and octa ...
Posted by shab620 on Tue, 21 Dec 2021 17:28:53 +0100
Basic introduction - understand the principle of automatic configuration [medium]
Part I: Introduction to basics -- understanding the principle of automatic configuration [i]
1, Container function
1. Add @ Configuration component
Case test:
(1) Configuration class
package org.apache.springboot.config;
import org.apache.springboot.bean.Pet;
import org.apache.springboot.bean.User;
import org.springframework.context.annot ...
Posted by cyrixware on Tue, 21 Dec 2021 15:28:05 +0100
JS string method summary
1. length
Returns the length of the string.
Example:
let str = 'ASDFGHJKL; l0'
console.log('The string length is:' + str.length);
Output:
2. indexOf()
Returns the index of the first occurrence of the specified text in a string.
Example:
let str = 'ASDFGHJKL; l0AS';
let index = str.indexOf('S');
console.log('The index is:' + index) ...
Posted by LOUDMOUTH on Tue, 21 Dec 2021 04:17:28 +0100
Using Docker to deploy the front-end project practical tutorial, I've stepped on all the pits that should be stepped on for you!
Everyone's first half of life is constantly adding. But in the second half of life, we have to learn to subtract constantly.
catalogue
Front work
1. Things to prepare
2. Connect to ECS
Install Docker environment
1. Install the dependent libraries of Docker.
2. Add the software source information of Docker CE.
3. Install Docker CE.
4. ...
Posted by bonzie on Tue, 21 Dec 2021 04:11:45 +0100
C1 task 03-Web foundation and layout
Task 1: use rich text editor
Observe various labels
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Onine</title>
<style>
.table1{
width: 500px;
}
.tr1,
.tr3{
background-color: gray;
}
.tr2 ...
Posted by dennisflash on Mon, 20 Dec 2021 21:21:01 +0100
Function extension of ES6
1 default value of function parameter
After ES6, you can specify default values for function parameters:
As shown below, before ES6, we can specify default values for parameters in the following alternative ways:
function log(x, y) {
if (typeof y === 'undefined') {//Avoid using the specified default value when y is an empty string
y = 'Worl ...
Posted by kbascombe on Mon, 20 Dec 2021 20:45:15 +0100
HTML+CSS+JavaScript to make electronic version of brilliant love expression animation (programmers are also very brilliant)
HTML+CSS+JavaScript to make electronic version of brilliant love expression animation (programmers are also very brilliant)
Programmers often leave the impression that they are code machines. They write code all day - Programmers don't know love! In fact, this is a one-sided view of programmers. Programmers should be proficient in code writing ...
Posted by _tina_ on Mon, 20 Dec 2021 13:02:38 +0100
Modular output in ES6
In previous javascript, there was no concept of modularity. If you want to perform modular operations, you need to introduce third-party classes Library. With the development of technology and the separation of front-end and back-end, the front-end business becomes more and more complex. It was not until ES6 brought modularity javascript suppor ...
Posted by ralba1998 on Mon, 20 Dec 2021 09:40:26 +0100
[suggestions collection] 25 + regular interview questions are analyzed in detail, so that you can easily pass the regular interview and write 2000 lines of code less
preface
Digital thousandth division, 3-3-4 format splicing of mobile phone number, implementation of trim function, HTML escape, obtaining url query parameters... Do you often encounter them in interviews and work? Let's see how to catch them all with regular!!!
1. Division of thousands of digital prices
Change 123456789 to 123456789
I ...
Posted by baranwalpk on Mon, 20 Dec 2021 05:18:56 +0100