Generic of [Typescript Introduction Manual]
Generic of [Typescript Introduction Manual]
๐ [TypeScript Introduction Manual] records the concept of Ts with high attendance, which is designed to help you understand and be familiar with Ts ๐ This series will continue to be updated and corrected, focusing on the points you are interested in. Welcome to leave messages and exchange, and ...
Added by jmrouleau on Fri, 28 Jan 2022 12:35:34 +0200
ECMAScript Module and CommonJS learning notes
Note: esm below refers to ECMAScript Module, that is, the module syntax of ES6 (import/export), and cjs refers to CommonJS (module.exports/require)
Browser side ESM module loading
When the browser uses the esm module syntax to import/export or load the ES6 module through the script tag, type="module" must be added so that the browse ...
Added by dila125 on Fri, 28 Jan 2022 12:19:12 +0200
Three.js - voice module
13. Voice module
13.1 association between audio and scene (sound source and listener)
Threejs provides a series of Audio related API s: Audio audio, position Audio, listener AudioListener, Audio analyzer, Audio loader, AudioLoader.
Threejs classes such as Audio, location Audio and PositionalAudio essentially encapsulate the native Web Au ...
Added by andy1398 on Fri, 28 Jan 2022 11:51:05 +0200
Inheritance in js
To realize inheritance, we first need a parent class. In js, there is actually no concept of class. In es6, although class is very similar to class, it is actually just a syntax sugar in es5
Prototype chain inheritance
The instance of the parent class is used as the prototype of the child class
function Woman(){
}
Woman.prototype= new Peopl ...
Added by mikegzarejoyce on Fri, 28 Jan 2022 11:16:07 +0200
ES6-6.Set set and Map set
1, Set set
Set set is an unordered list containing multiple duplicate values, which can quickly access the data and track various discrete values more effectively 1. Create a Set collection and add elements
//Since there is no forced type conversion on the stored value in the set set, the number 5 and the string '5' can exist as independe ...
Added by ryan-uk on Fri, 28 Jan 2022 11:04:35 +0200
[Vue] Vuex concept and basic usage
Welcome to learn and communicate!!! Continuously updating
Vuex
1. Concept
Vuex is a Vue plug-in that implements centralized state (data) management in Vue. It centrally manages (reads / writes) the shared state of multiple components in Vue applications. It is also a way of communication between components, and is suitable for commun ...
Added by daucoin on Fri, 28 Jan 2022 09:41:16 +0200
Vue-cli4's understanding of routing configuration
vue-cli4 routing configuration
Preface vue routing
Vue router is the official routing plug-in of Vue, which is similar to Vue JS deep integration In the single page application using Vue router, the change of URL will cause the switching of components, so as to achieve the effect of page switching. Therefore, how to change the URL accor ...
Added by Harley1979 on Fri, 28 Jan 2022 08:18:59 +0200
JS basic function advanced
Basic knowledge
Functions are modules that encapsulate reusable code blocks. In JS, functions have features that other languages do not have. Next, we will master the use skills in detail.
Declaration definition
In JS, a Function is also an object. A Function is an instance of the creation of a Function class. The following example is co ...
Added by mlefebvre on Fri, 28 Jan 2022 03:21:06 +0200
Front end: style inheritance and other concepts
Document flow
Document flow is the basis of web pages. The elements we create are arranged in document flow by default
In document flow Not in document stream (out of document stream)
Block element
The block element will monopolize one line in the page The default width is the full width of the parent element (which will fill th ...
Added by suepahfly on Fri, 28 Jan 2022 03:05:09 +0200
Declaration of variables in JavaScript
variable
In ECMAScript, variables can store any type of data (either string, array or other...), that is, "loose". Variables are just placeholders for distinguishing. There are three keywords var, const and let to declare variables (var is available in all versions of ECMAScript, and the last two are only available in ES6 and later). ...
Added by ChetUbetcha on Fri, 28 Jan 2022 02:07:09 +0200