Understanding of closures
How to generate closures?
Closure occurs when a nested inner (child) function references a variable (function) of a nested outer (parent) function.
What is a closure?
Understanding 1: a closure is a nested internal function. For example, in the following example, the internal function fun2() is a closure
Posted on Mon, 29 Nov 2021 08:07:21 -0500 by demon_athens
Posted on Mon, 29 Nov 2021 03:19:41 -0500 by Texan
A small exercise submitted by the front and back of the simulation
By filling in the information in the form of the first page and submitting it, and obtaining the data through the second page and performing parsing and rendering operations, the corresponding data is presented by entering the variable name. (the source code of the two pages is ...
Posted on Mon, 29 Nov 2021 02:50:10 -0500 by dgrinberg
jQuery event bubble explanation
Trigger a certain type of event on an object (for example, click onclick event). If the object defines a handler for this event, the event will call this handler. If the event handler is not defined or the event returns true, the event will propagate to the parent object of this obj ...
Posted on Mon, 29 Nov 2021 00:51:56 -0500 by jbrill
This case combines the previous knowledge points such as slot slot and Vue router front-end routing. The most important thing is to reflect the idea of component packaging.
Supporting executable code example = > GitHub
Project file structure
assets /: static resources, css, img, etcComponents /: common componentspages /: page componen ...
Posted on Sun, 28 Nov 2021 17:23:45 -0500 by shelbytll
D3.js Create Force Directed Map (V4)
_Reference for this article: https://blog.csdn.net/juzipidemimi/article/details/100787059
_Creating a force-oriented map requires three things:
Simulation simulation systemnodePower
_There are many nodes and various types of forces in the simulation system. Through the force to control the movement of no ...
Posted on Sun, 28 Nov 2021 12:57:19 -0500 by oQEDo
What is texture Texture
Simply put, a texture is an image that covers the surface of geometry. Different texture types have different effects.
Texture loader TextureLoader
// Initialize a texture loader and load the texture map with. load()
const textureLoader = new THREE.TextureLoader()
const colorTexture = textureLoader.load('/textures/doo ...
Posted on Sun, 28 Nov 2021 12:31:22 -0500 by lordgreg
Browser support for XPath... XML was once the standard for storing and transmitting structured data on the Internet. The development of XML reflects the development of the Web because The DOM standard is intended not only for use in browsers, but also for processing XML data structures in desktop and server applications. stay When the ...
Posted on Sun, 28 Nov 2021 10:30:17 -0500 by shaitan
ES6, also known as esmascript 2015, has added many easy-to-use featuresVariable declarationBefore ES6, var was used to define variables. ES6 added two variable declaration methods, const and let, respectively. Const was used to define constants and let was used to define variables, making up for the vulnerability of using var to define variable ...
Posted on Sun, 28 Nov 2021 09:51:30 -0500 by aliasneo86
1. Style comparison between vue3 and Vue2
Vue2 is commonly referred to as the options API
Vue3 is commonly referred to as the composition API
2. Relationship between vue2 option API and Vue3 composite API
The purpose of the composite API is to enhance, not replace, the optional API. vue3 supports both APIs For simple scenarios, i ...
Posted on Sun, 28 Nov 2021 09:02:26 -0500 by Sindarin