[class and module] class and type
Classes and types
JavaScript defines a small number of data types: null, undefined, Boolean, number, string, function, and object. The typeof operator yields the type of the value. However, we often prefer to treat classes as types, so that objects can be distinguished according to the class to which they belong. The built-in objects in the co ...
Posted on Thu, 02 Dec 2021 17:53:43 -0500 by doogles
DOM query in JavaScript
catalogue
!!! js is my video self-study in sgg. I may not have learned it all by myself. Please forgive me!!!
Find by Id
Use the getElementById() method to query
Find by TagName
Use the getElementsByTagName() method to query
Find by Name
Use the getElementsByName() method to query
Find by ClassName
Use the getElementsByClassName() meth ...
Posted on Thu, 02 Dec 2021 16:26:39 -0500 by shamoon
[20211202] CmsWing code analysis - src/controller/home/detail.js
2021SC@SDUSC
Starting from this article, we will analyze with the corresponding html file to infer more details of use by calling the JavaScript file.
view/home/ceshi_hooks.html
Here is the hook. What is a hook? https://www.jianshu.com/p/3382cc765b39 This paper introduces the use of hook function. Hook technology is also called hook funct ...
Posted on Thu, 02 Dec 2021 14:48:40 -0500 by fotobleu
Common types of TypeScript
The official documents of TypeScript have already been updated, but the Chinese documents I can find are still in the older version. Therefore, some newly added and revised chapters are translated and sorted out.This translation is compiled from "TypeScript Handbook" Everyday Types "Chapter.This article is not translated strictly ...
Posted on Thu, 02 Dec 2021 13:24:26 -0500 by me102
array knowledge point in front-end javascript
Tip: After the article is written, the catalog can be generated automatically, how to generate the help document to the right
Article Directory
Preface1. What is pandas?2. Steps for use
1. Introducing Libraries2. Read in data
Preface
Common methods for finding, adding, deleting, modifying arrays in javascript;
Tip: The follo ...
Posted on Thu, 02 Dec 2021 12:19:52 -0500 by jrough
Common types of TypeScript
The official documents of TypeScript have been updated, but the Chinese documents I can find are still in older versions. Therefore, some chapters which are newly added and revised are translated.This translation was compiled from TypeScript Handbook. Everyday Types "Chapter.This article is not translated strictly according to the original ...
Posted on Wed, 01 Dec 2021 23:10:35 -0500 by wrathican
BOM (Browser Object, Single Thread)
1. BOM: Browser object, which can interact with the browser window. The core object is window.
The difference between BOM and DOM:
The DOM is a document object model. It treats a document as an object, and its top-level object is document.
BOM is a browser object model, which treats the browser as an object. Its top-level object is windo ...
Posted on Wed, 01 Dec 2021 18:57:37 -0500 by GuiltyGear
Vuex status manager - communication between components
Vue has two core functions: data-driven and componentization. Component development brings us: Faster development efficiency Better maintainability Each component has its own state, view, and behavior components.
Status management includes the following parts: state, the data source driving the application; View, which maps the state ...
Posted on Wed, 01 Dec 2021 17:51:42 -0500 by gskurski
React - Introduction to React, JSX Syntax, Virtual DOM
1. Introduction to React
What is 1.1 React?
JavaScript libraries for dynamically building user interfaces (view-only)
Send a request for dataProcessing data (filtering, organizing formats, etc.)Manipulate DOM rendering pages (what React does)
React is an open source JavaScript library that renders data as an HTML view
1.2 Disadvantag ...
Posted on Wed, 01 Dec 2021 15:08:12 -0500 by keevitaja
ES6 series XIII: Set and Map data structures
ES6 series XIII: Set and Map data structures
Set
Basic Usage
ES6 provides a new data structure Set. It is similar to an array, but the values of members are unique and there are no duplicate values.
Set itself is a constructor used to generate a set data structure.
const s = new Set();
[2, 3, 5, 4, 5, 2, 2].forEach(x => s.add(x)); ...
Posted on Wed, 01 Dec 2021 14:51:28 -0500 by LostNights