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
[ES6] arrow function
1, What is the arrow function?
ES6 allows functions to be defined using "arrows" (= >).
let foo = v => v;
// The arrow function above is equivalent to:
let foo = function(v) {
return v; };
The left side of the arrow function (= >) is the parameter and the right side is the function body.
2, Detailed usage
1. ...
Posted by eektech909 on Fri, 25 Feb 2022 11:53:06 +0100
Interpretation of Vue source code -- global API
When learning becomes a habit, knowledge becomes common sense. Thank you for your likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.targetDeeply understand the implementati ...
Posted by zeth369 on Fri, 25 Feb 2022 02:24:52 +0100
ES6 - deep understanding of arrow function
Arrow function, basic knowledge
There is another very simple syntax for creating functions, and this method is usually better than function expressions.
It is called the "arrow function" because it looks like this:
let func = (arg1, arg2, ..., argN) => expression;
Here, a function func is created, which accepts the parameter a ...
Posted by hesyar on Thu, 24 Feb 2022 14:32:23 +0100
Interpretation of Vue source code -- asynchronous update
When learning becomes a habit, knowledge becomes common sense. Thank you for your likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.prefacePrevious Interpretation of Vue so ...
Posted by Grim... on Thu, 24 Feb 2022 02:08:32 +0100
Interpretation of Vue source code -- responsive principle
When learning becomes a habit, knowledge becomes common sense. Thank you for your likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.prefaceLast article Interpretation of Vu ...
Posted by mr_armageddon on Wed, 23 Feb 2022 04:06:59 +0100
It's been 2202. If you don't learn ES6, you'll be out
ES6 Foundation
ES6 overview
ECMAScript 6 has basically become the industry standard, and its popularity is much faster than ES5. The main reason is that modern browsers support ES6 very quickly, especially Chrome and Firefox browsers, which already support most of the features in ES6.Its goal is to make JavaScript language can be used to wr ...
Posted by fael097 on Tue, 22 Feb 2022 12:07:19 +0100
Basic knowledge of JavaScript Chapter 6 - functions (including a large number of case studies)
preface❤️ The rainbow after the rain is more beautiful, and the suffering life is more brilliant ❤️
1, JavaScript function
(1) Concept of function
In JS, many codes with the same or similar functions may be defined, which may need to be reused. Although the for loop statement can also realize some simple repetitive operations, it has lim ...
Posted by Birch on Tue, 22 Feb 2022 02:06:26 +0100
Interpretation of Vue source code -- Vue initialization process
When learning becomes a habit, knowledge becomes common sense. Thank you for your likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.targetDeeply understand the initializati ...
Posted by JeanieTallis on Tue, 22 Feb 2022 01:43:36 +0100
Built in objects for JavaScript
catalogue
1, Number?
1. isFinite()
2.?isInteger()
3. isNaN()
4. parseFloat()
5. parseInt()
2, String
1. indexOf()
2. replace()
3. search()
4. concat()
5. split()
6. slice()
7. substr()
8. substring()
9. includes()
3, Array
1. join()
2. push()
3. pop()
4. shift()
5. reverse()
6. filter()
7. forEach()
8. find()
4, Object ...
Posted by PickledOnion on Mon, 21 Feb 2022 11:42:06 +0100