JQuary (from native js to jq, jq is easy)
1. Introduction to jquery
jQuery is an excellent JavaScript library that enables more functionality with minimal code
characteristic: 1. Powerful selector function $ ("selector")
2. Introduction to grammar $ ("selector").action()
3. Implicit iteration $ ("div").click(); // Five div will ...
Posted by kestasjk on Mon, 22 Nov 2021 18:32:55 -0800
ES6 added API: Array
New static functionArray.ofFunction type://Receive any number and type of parameters, and return an array of these parameters in the order they are passed in
(...args?:any[])=>any[];Array.of is used to create a new Array instance with a variable number of parameters. The difference between it and creating arrays through the array constructor ...
Posted by fishdishdesign on Mon, 22 Nov 2021 11:12:25 -0800
MongoDB << connection to database and creation of data
1.mongodb official website
MongoDB: the application data platform | MongoDB
2. Go to the official website of MongoDB and download MongoDB, MongoDB compass and Mongodb--database--tools
3. The operation of the MongoDB database by nodejs needs to rely on the third-party package mongoose of nodejs
Terminal instruction: npm install mongoo ...
Posted by nobodyk on Mon, 22 Nov 2021 07:15:39 -0800
4 powerful JavaScript operators
1. ?? Non air operator
In JS,?? Operators are called non airlift operators. If the first parameter is not null/undefined, the first parameter will be returned, otherwise the second parameter will be returned. For example,
null ?? 5 // => 5
3 ?? 5 // => 3
When setting default values for variables, logic or operators were commonly used, ...
Posted by Zaxnyd on Mon, 22 Nov 2021 04:15:43 -0800
Quickly understand the Set and WeakSet of ES6
Before ECMAScript 6, arrays can be used to store values, and ECMAScript 6 adds two collection types: Set and WeakSet.SetSet set can use new to create an empty set:const s = new Set();You can also initialize an instance when creating a Set:const s = new Set(["Xiao Zhao", "Xiao Ming", "Kasumi "]);You can also customize the iterator when initializ ...
Posted by mukunthan on Sun, 21 Nov 2021 18:16:25 -0800
Quickly understand the class definition of ES6
Before ECMASCript 6, constructor patterns and prototype patterns and their combinations were used to simulate the behavior of classes. However, these strategies have their own problems and corresponding compromises. The implementation of inheritance can also be very lengthy and confusing. Therefore, ECMASCript5 introduces a new class keyword to ...
Posted by Mystis on Sun, 21 Nov 2021 02:08:49 -0800
BOM browser object model, DOM document object model
1, BOM browser object model
BOM - Browser Object Model The top-level object of BOM is winodw (an object. When you open a page, there is a window) All the variables you define in the group are under window.
1. Window size of browser
Refers to the size of the browser's visual window. A scroll bar may appear in the browser   ...
Posted by fireice87 on Sat, 20 Nov 2021 10:15:19 -0800
Knowledge system of Web front end development engineer_ 24_JavaScript core
1, ES5 (ECMAScript version 5)
1. Add a function in the array
Judgment function
every() is used to judge whether all elements in an array meet the requirements. The format is as follows:
var Judgment result=array.every(
function(Current element value n,Current subscript i,Current array ...
Posted by jcanker on Fri, 19 Nov 2021 11:33:57 -0800
Learning note 1: JavaScript compilation and execution
JavaScript is a descriptive scripting language, which is different from java or C# and other compiled languages. It does not need to be compiled into an intermediate language, but by browser Dynamically parse and execute. The code cannot be run directly. It needs to be compiled by the JavaScript compiler. Only the compiled code can be recognize ...
Posted by bg on Fri, 19 Nov 2021 03:16:15 -0800
2, Select structure
catalogue
1. Composition of JavaScript
1. Three cores
2. Common methods of window objects
2.if selection structure
3. Multiple if selection structure
4. Nested if selection structure
5.switch selection structure
6. Ternary expression
1. Composition of JavaScript
1. Three cores
ESMAScript core syntax (Standard Specification) - > ...
Posted by jikishlove on Thu, 18 Nov 2021 07:04:12 -0800