Self study JS note taking knowledge (there may be errors, welcome to correct)
Common browsers
webkit kernel (v8) engine
google chrome safariopera(v14)Domestic browserMobile phone browser... Gecko
Firefox Firefox presto
opera <v14 Trident
IEIe edge (starting with dual core)
JS as client language
Operate the elements in the page according to the relevant syntax, and sometimes operate the browserECMAS ...
Posted by markjoe on Fri, 21 Jan 2022 09:02:09 +0100
Ab initio front end --es6 (deconstruction and assignment of array)
Deconstruction assignment of array
Basic Usage
ES6 allows you to extract values from arrays and objects and assign values to variables according to a certain pattern, which is called deconstructing.
es5 declares multiple variables at once
var a = 1,
b = 2,
c = 3,
...;
es6 declares multiple variables at once
let [a,b,c] = [1, ...
Posted by playa4real on Fri, 21 Jan 2022 05:59:35 +0100
JS deep excavation: event mechanism Q & A - registered event listening, event response operation, bubbling and capture
catalog:
1,Event mechanism concept
2,Method of registering event listening
3,Event operation
4,Bubbling and trapping
1. Event mechanismProblem Description:1) How does the event mechanism work? How is it different from the event loop mechanism?Answer:Event mechanism is different from event loop. It is user interaction level and depends on event ...
Posted by 8ball on Thu, 20 Jan 2022 20:58:30 +0100
Homework for the fourth and fifth days of learning JS
Assignment 1
The following functions are implemented as required and tested:
Implement a join function, which can connect the parameters according to the specified characters.
Function name: join.
Parameters: s (symbol), SRC1 (character 1), src2 (character 2)
Return value: string after connection
function join(s,src1,src2){
///Self re ...
Posted by JeremyTiki on Thu, 20 Jan 2022 14:36:13 +0100
Ab initio front end --es6 (numerical expansion)
Numerical extension
Number.isFinite(),Number.isNaN()
ES6 provides a new Number on the Number object Isfinish() and Number Isnan() two methods.
Number. Isfinish () is used to check whether a value is finite.
Number.isFinite(15); // true
Number.isFinite(0.8); // true
Number.isFinite(NaN); // false
Number.isFinite(Infinity); // false
Number.is ...
Posted by Stu on Wed, 19 Jan 2022 14:26:32 +0100
ES6 basic summary
1, The value of the formal parameter is determined by the argument passed in when the function is called
//Previous writing
function add(x, y) {
if (typeof x == "undefined") {
x = 1
}
if (typeof y == "undefined") {
y = 1
}
return x + y; ...
Posted by Jak-S on Tue, 18 Jan 2022 23:05:27 +0100
Vue3 learning journey -- love Vue3--Vue3 basic syntax -- template syntax -- conditional rendering -- list rendering -- why Vue's v-for needs to bind the key attribute
Vue3 learning journey – falling in love with vue3 – vue3 basic grammar (II) – template grammar
Continued: Vue3 learning journey – meet vue3 - learn about vue3
Vue3 learning journey – meet vue3 - know vue3 (II)
Vue3 learning journey – falling in love with vue3 – vue3 basic syntax (I) – and basic ...
Posted by creativeimpact on Mon, 17 Jan 2022 08:59:05 +0100
Advanced JavaScript - ES6
1, New syntax for ES6
Let: the variables declared by let are valid only at the block level Variables declared with the let keyword have block level scope. Variables declared with var do not have block level scope.
<script>
if (true) {
let b = 20;
console.log(b); // 20
}
console.log(b); // b is not ...
Posted by phpizza on Mon, 17 Jan 2022 06:58:21 +0100
ES6 of JavaScript series
1, Basic grammar
1. let command
(1) Declare variable
let a;
Declare variables and assign values (variable initialization)
let a = 100;
console.log(a); // 100
(2) Note:
① Variable cannot be declared repeatedly
let star = 'ldh';
let star = 'zxy';
console.log(star); // Will report an error
② Written in a code block {} is ca ...
Posted by PRodgers4284 on Sun, 16 Jan 2022 09:34:39 +0100
ES6 -- Iterator iterator
1, The concept of Iterator
Meaning: Iterator is an interface that provides a unified access mechanism for various data structures. Any data structure can complete the operation of traversing all members of the data structure as long as the Iterator interface is deployed.
The data structure with native Iterator interface is as follows:
Ar ...
Posted by juhl on Sat, 15 Jan 2022 15:52:36 +0100