Basic tutorial for getting started with React
Basic tutorial for getting started with React
What is React?
React is a declarative, efficient and flexible JavaScript library for building user interfaces. Using react, you can combine some short and independent code fragments into a complex UI interface. These code fragments are called "components"
What are the characteristics of ...
Posted by riddlejk on Sat, 01 Jan 2022 09:05:17 +0100
[D3.js learning record] - D3 Basic idea of JS data binding
Data binding
DataJoin
Essence: data is bound with entities, that is, after binding, each entity has its own semantics. For example, in demo2, if the region field in the data is bound to the entity, the entity represents the region
Eg:
The number of people per country is bound to the length of the rectangleThe proportion of people infected b ...
Posted by Jorge on Sat, 01 Jan 2022 05:40:04 +0100
Throttling and anti chattering
Why use anti shake and throttling?
Take a chestnut eight:
html:
No throttling and anti chattering <input type="text" name="" id="normal">
js:
window.onload=function(){
// Impersonate ajax requests
function ajax(content){
console.log('ajax request'+content);
}
let iptnormal=document.getElementById('no ...
Posted by jeppers on Sat, 01 Jan 2022 04:19:49 +0100
"ES6" - learning notes
Compare the scope of the var and let keywords
When a variable is declared with the var keyword, it is declared globally. If it is declared inside a function, it is declared locally.
The let keyword behaves similarly, but has some additional functionality. When you use the let keyword to declare a variable in a code block, statement, or expres ...
Posted by Rodis on Fri, 31 Dec 2021 21:15:42 +0100
Restrictions on Js file upload type of Web front end (judged according to file header information)
preface
In the process of Web project development, the file upload function is almost essential. Many times, when we upload files, especially when we open the file upload function to ordinary users, we generally need to limit the format of uploaded files to prevent bad users and hackers from uploading virus script files to the server, Common f ...
Posted by ridiculous on Fri, 31 Dec 2021 15:24:28 +0100
Recursion and closure of functions and functions
Definition of function (Declaration of function)
grammar
function Function name(Parameter 1,Parameter 2,...){
//The statement that the function will execute
}//This is called a function declaration
//It can also be written like this
var f = function(Parameter 1,...){...}//This is also called function expression.
//In this way, f is the f ...
Posted by longhorn14 on Fri, 31 Dec 2021 15:00:49 +0100
32 handwritten JS to consolidate your JS Foundation (high frequency interview)
32 handwritten JS to consolidate your JS Foundation (high frequency interview)
As a front-end development, JS is the top priority. Recently, the peak of the interview has been ended. Basically, the offer has been decided. Wait for the lottery. Take this time to summarize 32 handwritten JS questions. These are high-frequency interview questions ...
Posted by Mistat2000 on Fri, 31 Dec 2021 10:35:47 +0100
webpack basic usage
Webpack is a technology that many front-end workers will contact. It has no doubt about the effect of code optimization, but its complex operation is undoubtedly very troublesome for Xiaobai who is new to the front-end. Today, let's talk about the introduction and use of the basis of webpack.
Basic concepts
webpack is a static module packer f ...
Posted by Ludichrist on Fri, 31 Dec 2021 10:27:52 +0100
Uncover the mystery of Vue asynchronous components
brief introductionIn large applications, some components may not be displayed at the beginning and will only be rendered under specific conditions. In this case, the resources of the component do not need to be loaded at the beginning, and can be requested when necessary. This can also reduce the resource volume loaded on the page for the first ...
Posted by max_power on Fri, 31 Dec 2021 01:41:39 +0100
ES6 review knowledge points
let and const of ES6 series
Occurrence of block level scope
Variables declared through var have the characteristics of variable promotion:
if (condition) {
var value = 1;
}
console.log(value);
Beginners may think that value can be created only when condition is true. If condition is false, the result should be an error. However, due to ...
Posted by derzok on Thu, 30 Dec 2021 21:18:06 +0100