Kang on js prototype chain: modify the attributes on the prototype (chain) through the instance object

Kang on js prototype chain: modify the attributes on the prototype (chain) through the instance object js: modify the attributes on the prototype (chain) through the instance object 1 prototype object properties are basic data types 2. The property of prototype object is reference type 3 Summary (just copy the previous one for memory) js: mod ...

Posted by claypots on Mon, 03 Jan 2022 17:21:13 +0100

Vue Basics

1, Instruction 1.1 what are instructions? The essence of an instruction is a custom attribute 1.2 instructions v-cloak instruction usage: Solve the problem of interpolation expression: "flashing" Data binding instruction ⚫ v-text fill in plain text ⚫ v-html fill HTML fragment ⚫ v-pre fills in the original information ...

Posted by 5kyy8lu3 on Mon, 03 Jan 2022 16:07:12 +0100

[JS from introduction to mastery] 09 array

Note source: Complete version of the latest version of JavaScript basic tutorial in Silicon Valley (140 sets of practical teaching, JS from introduction to mastery)_ Beep beep beep_ bilibili array 1. Array introduction An array is also an object It is similar to our ordinary object function and is also used to store some values The d ...

Posted by stockdalep on Mon, 03 Jan 2022 12:50:21 +0100

The third-party library puppeter of nodejs is used to solve some landing page simulation problems of rendering pages with js

I came across a man named puppeteer Google browser developed itself in 17 years Chrome Headless characteristic,And launched at the same time puppeteer,It can be understood as our daily use Chrome Interface free version of and how to manipulate it js Interface package ". In short, it is a third-party library that simulates the behavior of ...

Posted by hughesa on Mon, 03 Jan 2022 11:44:22 +0100

Vue component development

Components are reusable Vue instances. If a part of a web page needs to be used in multiple scenarios, we can extract it as a component for reuse. Component greatly improves the reuse rate of code ** ** ** ** Extended reading: https://blog.csdn.net/YYxiaobao0726/article/details/86577481 1. Component name: Dash: hump type: Note: if it is hump ...

Posted by d3web on Mon, 03 Jan 2022 10:53:06 +0100

2021-07-29 some efficient operators in JS

A new version of JavaScript will be released every year, and some operators with more convenient and efficient operations will be added. Here are some efficient magic operators. Chain operator (?) When using a property with a deep structure and it is impossible to determine that all parents must exist, we need to make a series of jud ...

Posted by xcasio on Mon, 03 Jan 2022 10:31:41 +0100

The most complete handwritten JS interview questions

1 compose Title Description: implement a compose function // The usage is as follows: function fn1(x) { return x + 1; } function fn2(x) { return x + 2; } function fn3(x) { return x + 3; } function fn4(x) { return x + 4; } const a = compose(fn1, fn2, fn3, fn4); console.log(a(1)); // 1+4+3+2+1=11 Copy code The implementation code is a ...

Posted by affc on Mon, 03 Jan 2022 10:08:52 +0100

2021SC@SDUSC Source code analysis of "F2 mobile terminal visualization scheme" -- new features of ES11

2021SC@SDUSC catalogue matchAll Dynamic import import.meta export * as ns from 'module' Promise.allSettled BigInt GlobalThis Null merge operator (?) Optional chain operator (.?) matchAll The matchAll() method returns an iterator containing the results of all matching regular expressions. Use for Of traversal or using operators Ar ...

Posted by cvjacques on Mon, 03 Jan 2022 08:25:28 +0100

Why do you need the middleware bodyParser?

preface I haven't written articles on JS development for many days, mainly because there are too many recent things. I don't know what to write today. Then I noticed that when we write http services, we usually directly use a middleware body parser to get the parameters passed in our post request. Front end code Let's take a look at our test co ...

Posted by gibbo1715 on Mon, 03 Jan 2022 07:25:47 +0100

vue class dynamic binding

Class is bound to Style The class list and inline style of operation elements are a common requirement of data binding. Because they are all attribute s, we can handle them with v-bind: we just need to calculate the string result through the expression. However, string splicing is cumbersome and error prone. Therefore, when using v-bind for cla ...

Posted by coderb on Mon, 03 Jan 2022 05:52:30 +0100