Pre parsing (no change)
Pre analysis
Pre parsing: read through and explain the code before all the code is executed, and then execute the code after the explanation is completed
Function call problem:
When a function is defined, the code put into the "box" will not be executedThe code is executed only when the function is called
Pre parsing has two parts ...
Posted by crouchl on Sun, 27 Feb 2022 07:31:17 +0100
The fifth day of learning JSDOM and BOM
The fifth day of learning JS BOM and DOM (Part 2)
1. Animation function
1.1 creep function
The speed of movement is not uniform, but changes slowly
An example
explain
Achieve jog animation and can move between multiple values
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta htt ...
Posted by anon on Sun, 27 Feb 2022 03:17:02 +0100
JavaScript learning notes
1, Overview JavaScript is a scripting language. Its target program is saved in the form of ordinary text. JS runs in the browser, which has a kernel that executes JS code. It has nothing to do with JAVA. JavaScript is mainly used to operate nodes in HTML to produce dynamic effects. It is a programming language. Core syntax: ECMAScript 2, How to ...
Posted by shrive22 on Sun, 27 Feb 2022 02:44:19 +0100
[lodash] difference source code study and analysis [pre index]
Welcome to my official account, "front-end wall".
A modern JavaScript utility library delivering modularity, performance & extras.
lodash is a consistent, modular, high-performance JavaScript utility library
1, Environmental preparation
lodash version v4 zero Through github1s web page, you can see lodash - differ ...
Posted by mastermike707 on Sat, 26 Feb 2022 15:15:05 +0100
10 great JavaScript shorthand skills
Today I want to share 10 great JavaScript shorthand methods, which can speed up the development speed and get twice the result with half the effort.
Let's go!
1. Merge arrays
Common writing:
We usually use the concat() method in Array to combine two arrays. Using the concat() method to merge two or more arrays does not change the existing A ...
Posted by jadebabe on Sat, 26 Feb 2022 12:07:33 +0100
Higher order function - make the code simpler and include examples
The arrow function is used in this article. If you don't know, you can check it 👇
ES6 study noteshttps://blog.csdn.net/TeAmo__/article/details/123053529?spm=1001.2014.3001.5501
catalogue
forEach traversal
filter filtering
Find find
findIndex find subscript
map mapping
reduce accumulation
Some some
every all
Sort sort
forEach tr ...
Posted by Grant Holmes on Sat, 26 Feb 2022 10:05:04 +0100
Encapsulation of native ajax requests
Encapsulation of native ajax requests
The native ajax request is divided into four steps:
1. Create request object
Determine browser compatibility issues ie browser: window ActiveXObject Common browser: window XMLHttpRequest
if (window.XMLHttpRequest) {
var xhr = new XMLHttpRequest();
} else if (window.ActiveXObject) {
...
Posted by Coronet on Sat, 26 Feb 2022 09:54:06 +0100
Interview: this keyword
preface
this topic is an unavoidable difficulty in study, work and interview.
Let's start with a topic:
var name = "Xiao Hong";
function a() {
var name = "Xiaobai";
console.log(this.name);
}
function d(i) {
return i();
}
var b = {
name: "Xiao Huang",
detail: function() {
console.log(this.name);
},
show: fu ...
Posted by cyanblue on Sat, 26 Feb 2022 09:14:49 +0100
The fourth day of learning JSDOM and BOM
js DOM and BOM study day 4
1. BOM overview
1.1 what is BOM
BOM (Browser Object Model), Browser Object Model, which provides content independent objects that interact with browser windows. The core object is windowBOM consists of a series of objects with multiple attributes and methodsBOM lacks standards. js standard ECMA, DOM standard W3 ...
Posted by anthony522 on Sat, 26 Feb 2022 08:07:25 +0100
The 8th meeting of django framework
The 8th meeting of django framework
Introduction to AJAX
AJAX (Asynchronous Javascript And XML) is translated into Chinese as "Asynchronous Javascript And XML". That is, use Javascript language to interact asynchronously with the server, and the transmitted data is XML (of course, the transmitted data is not just XML).
AJAX ...
Posted by DirtySnipe on Sat, 26 Feb 2022 05:46:45 +0100