New methods of Object object Object in core JS: assign, is, setPrototypeOf- Explanation of use
Object.is()
ES5 compares whether two values are equal. There are only two operators: the equality operator (= =) and the strict equality operator (= =). Both of them have disadvantages. The former will automatically convert the data type, while the NaN of the latter is not equal to itself, and + 0 is equal to - 0. JavaScript lacks an operation ...
Added by spiyun on Thu, 10 Feb 2022 14:30:04 +0200
Implementation of fluent web plug-in: get through JavaScript and Dart
Previously, I shared how to support Android and Windows in the fluent plug-in. This article will add the implementation method of Web plug-in and create a simple web one-dimensional code and two-dimensional code recognition application.
Reference resources
https://dart.dev/web/js-interophttps://github.com/grandnexus/firebase-darthttps://pub ...
Added by ksduded on Thu, 10 Feb 2022 14:05:00 +0200
Interact with Flow using Javascript
This article assumes that the reader is a developer familiar with JavaScript and React[1], has a certain understanding of Flow[2], or is familiar with the concepts related to Flow smart contract language Cadence[3].
Through this article, we will be familiar with and build a local development environment, and use JavaScript to complete the ca ...
Added by ljschrenk on Thu, 10 Feb 2022 13:45:29 +0200
Shallow copy and deep copy in js
In the process of front-end development, we often encounter the problems of shallow copy and deep copy, The following is a brief description of the concept, difference and implementation method of shallow copy and deep copy.
concept
Shallow copy:
Shallow copy means that a new object accurately copies the attribute value of the original objec ...
Added by bing_crosby on Thu, 10 Feb 2022 13:34:32 +0200
H5 page Jump applet in vue
What I've been doing recently is a function of the H5 page Jump applet. What I'm talking about below is the problems and solutions I encountered in the project. I don't know whether it will help you. If there is a better way, we can put forward to discuss and learn from each other. In this way, we can make rapid progress
Official open labe ...
Added by vronsky on Thu, 10 Feb 2022 13:23:34 +0200
JS basic task management
task management
A major feature of JavaScript language is single thread, that is, it can only process one task at a time. In order to coordinate the behaviors of events, user interaction, scripts, UI rendering and network processing, and prevent the non blocking of the main thread, the scheme of (Event Loop) Event Loop is applied.
JavaScr ...
Added by Rik Peters on Thu, 10 Feb 2022 12:30:56 +0200
JavaScript raw value and wrapper object
preface
As JavaScript becomes more and more popular, more and more developers begin to contact and use JavaScript.
At the same time, I also found that many developers do not have a clear understanding of the most basic original values and wrapper objects of JavaScript.
In this article, I'll introduce them in detail.
🧐 Let's go!
text
P ...
Added by maxime on Thu, 10 Feb 2022 11:06:34 +0200
xss manual version of cross site script attack
definition
Cross site scripting (XSS): cross site scripting is a computer security vulnerability that often occurs in web applications. It allows malicious web users to implant code into pages provided to other users.
type
Storage (persistent) The cross site script can be injected into the file system or database of the server – lu ...
Added by LDM2009 on Thu, 10 Feb 2022 10:38:10 +0200
Summary of front-end pen test questions in winter 2020
Original address: Some great interview questions [4]
Recently, I interviewed some companies and got some offer s. I don't record concept questions, but only coding questions. In their spare time, they can do these problems and practice their hands.
Graffiti intelligence will recruit a large number of people in 2021. There are vacancies i ...
Added by mindfield on Thu, 10 Feb 2022 09:39:58 +0200
Practical ways to write better JavaScript
catalogue
Use type script
Type scripts enforce type safety
Type descriptions make it possible to refactor larger applications
Type scripts make team architecture communication easier
Use modern features
Synchronization and waiting
Jean and conster
Arrow = = function
Propagation operator
Template font (template string)
Object const ...
Added by mastercjb on Thu, 10 Feb 2022 09:30:29 +0200