Understanding closure
closure
Rhinoceros book: if a function variable can be saved in the scope of a function, it can be called a closure
Advanced Programming: closure refers to a function that has access to variables in the scope of another function (the function is not exported);
javascript you don't know: when a function can remember and access its lexical sco ...
Posted by newb on Sun, 13 Feb 2022 11:52:51 +0100
React JS + Spring Boot REST API example tutorial
In this tutorial, we will use React as the front end and Spring Boot as the back end to create a simple "single page application".
React is used to build a user interface (UI) at the front end.
Spring Boot is very popular in developing RESTful Web services and micro services.
As we all know, React is a JavaScript based librar ...
Posted by doddatika on Sun, 13 Feb 2022 03:02:28 +0100
Explain ESM module and CommonJS module in simple terms
Ruan Yifeng Getting started with ES6 There are some significant differences between ES6 module and CommonJS module mentioned in:The CommonJS module outputs a copy of the value, while the ES6 module outputs a reference to the value.CommonJS module is loaded at run time, and ES6 module is the output interface at compile time.If you read the diffe ...
Posted by Phate on Sun, 13 Feb 2022 02:43:48 +0100
WEB Development Foundation--Advanced CSS3 Learning
This article is for advanced knowledge point HTML5 learning, for my own notes while learning, but also for beginners. Your favorite friends can watch out and follow up with JavaScript, TypeScript, vue2.0, vue3.0 and a series of front-end learning articles such as the uni framework. (strong people don't like to detour, my heart is fragile, don't ...
Posted by magaly on Sat, 12 Feb 2022 18:17:50 +0100
Vite learning - rollup & esbuild basic learning
This section introduces the basic usage of rollup and esbuild. We all know that the rollup package used by vite itself is consistent with the plug-in mechanism of rollup; Esbuild is used to process files in the development environment. It also has its own declaration cycle hook function. Because it is not friendly to file segmentation and css s ...
Posted by Kisses on Sat, 12 Feb 2022 17:49:18 +0100
Custom throttling function six steps to deal with complex requirements
Throttling definitionSome frequently operated events will affect performance. "Throttling" is used to control the response interval. When the event is triggered, the corresponding function will not be triggered immediately, but will execute the response function according to a specific time interval every time the response interval is ...
Posted by stuartbates on Sat, 12 Feb 2022 14:23:31 +0100
Basic knowledge points of css3
I reviewed it again from html. Today I will mainly review css3, sort out some common knowledge points, and update js, jq, vue, react, etc
CSS3 is the latest CSS standard.
CSS3 border
Border radius: used to create fillets
Box shadow: used to add shadows
Border image: creates a border using a picture
CSS3 background
Background image: a ...
Posted by Kain Elderan on Sat, 12 Feb 2022 10:36:38 +0100
Talking about vue3 the communication of each component
Component communication is often used in front-end development. Today, let's summarize the communication of each component
1, Parent child component communication
Father to son (prop)
Pass from parent to child is mainly to define the prop attribute in the sub component and add the value to be passed in, for example:
//Subcomponents
//The te ...
Posted by Charles256 on Sat, 12 Feb 2022 05:13:06 +0100
[JavaScript] iterators, generators and iteratable objects
iterator
What is an iterator The object that implements the next method is the iterator. The next method can have zero or one parameter and return an object. The format of this object is shown in the following example code:
const iter = {
next() {
return {done: false, value: 1}
}
}
Done indicates whether the iteration is completed, and ...
Posted by Salkcin on Sat, 12 Feb 2022 02:16:14 +0100
Notes of the fifth web front-end training (basic syntax of JavarScript)
1.JavaScript
1.1.JavaScript composition
ECMAScript (basic syntax): describes the basic language and objects of the language
DOM (document object model): describes the methods and interfaces for processing web page content
BOM (browser object model): describes the methods and interfaces for interacting with the browser
1.2. Basic Usage ...
Posted by love_php on Fri, 11 Feb 2022 22:51:41 +0100