Array structure of data structure and algorithm
Data structure and algorithm (1) array structure
I Basic use of arrays
Create and initialize arrays
It is easy to declare, create, and initialize arrays in JavaScript, as follows: //Create and initialize arrays
let daysOfWeek = new Array();
let daysOfWeek = new Array(7);
let daysOfWeek = new Array('Sunday','Moday','Tuesday','Wednesday','Thu ...
Added by stvs on Tue, 18 Jan 2022 15:43:15 +0200
2021-10-21 deep JavaScript advanced syntax
*Note: This article is to learn the course notes of in-depth JavaScript Advanced Grammar codewhy new course. It is recommended to find the teacher's course in Tencent class for learning.
1,GO AO VO
1.1. The VO in the function is called AO, and the global VO is called GO (earlier, ES5 was not included before ES5): variables and functions de ...
Added by vinoindiamca on Tue, 18 Jan 2022 15:02:41 +0200
Responsibility chain model of js design pattern
I Initial responsibility chain model
Definition: multiple objects have the opportunity to process the request, so as to avoid the relationship between the sender and receiver of the request. Connect the object into a chain and pass the request along a chain until an object processes it.
It may be a little obscure. Let's take a look at an exam ...
Added by radley on Tue, 18 Jan 2022 12:47:42 +0200
[Vue] calculate attributes, slots and content distribution, custom events, and the use of $emit
1, Calculation properties
Computed attributes are used to declaratively describe that a value depends on other values. When you bind data to a calculated attribute in the template, Vue will update the DOM when any value it depends on causes the calculated attribute to change. This function is very powerful. It can make your code more ...
Added by vince81 on Tue, 18 Jan 2022 12:35:08 +0200
JavaScript - Foundation timer, callback function, countdown
Two timers provided by window
setTimeout()setInterval()
window. SetTimeout (calling function, [number of milliseconds delayed]);
The setTimeout() method is used to set a timer. When the delay time is up, the calling function will be executed, and it will end only once.
<script>
//The delay time is in milliseconds
...
Added by mikusan on Tue, 18 Jan 2022 10:48:21 +0200
JavaScript -- string type
String extraction method
slice() substr() substring()
Function: returns a substring of the corresponding string, and both receive one or two parameters. Difference: for slice() and substituting(), the first parameter represents the starting position of the substring, the second parameter represents the ending position of the substring extract ...
Added by newbie5050 on Tue, 18 Jan 2022 09:56:06 +0200
Authority management in front end and back end separation
In the traditional front and back-end development, permission management is mainly carried out through filters or interceptors (the permission management framework itself also realizes the function through filters). If users do not have a role or a permission, they cannot access a page.
However, in the separation of front and back ends, the pa ...
Added by jamesp on Tue, 18 Jan 2022 09:21:47 +0200
TypeScript advanced types and usage
This article introduces the usage scenarios of advanced TypeScript types in detail, which can provide some help for the daily use of TypeScript.
preface
This article has been included in Github: https://github.com/beichensky/Blog In the middle, pass by and point a Star
1, Advanced type
& cross type
Cross type is to combine multiple typ ...
Added by colmtourque on Tue, 18 Jan 2022 08:29:03 +0200
JavaScript Volume I you don't know - in-depth understanding
catalogue
Part I: scope and closure
Chapter 1. What is the scope
Chapter 2} lexical scope
Chapter 3 function scope and block scope
Chapter 4 - lifting
Chapter 5: scope closure
The second part is} this and object model
Chapter 1} about this
Chapter 2} this comprehensive analysis
Chapter 3: object
Chapter 4} mixed object "class&qu ...
Added by scratchwax2003 on Tue, 18 Jan 2022 05:50:16 +0200
Summary of JavaScript knowledge points
Updated from time to time, only for notes
catalogue
1, Comparison of var, let and const
2, Cookie, localStorage, sessionStorage comparison
3, String connection
1. Use connector "+"
2. join method using array
3. Use the template string backquote ` 'of ES6
4. Using concat method
4, JS operator
1. Non air operat ...
Added by marty_arl on Tue, 18 Jan 2022 04:50:02 +0200