JS node operation

Node overview 1. In JS, nodes can be divided into parent nodes, child nodes and brother nodes. It can also be divided into element node, attribute node and text node 2. The node has at least three basic attributes, nodeType, nodeName and nodeValue The node type of the element node is 1 (when operating on a node, the element node is usually op ...

Added by rbenfield on Thu, 13 Jan 2022 07:04:44 +0200

Array method Encyclopedia

Array method 1.Array.from() from() is used to convert the class array structure into an array instance and return a new array // The string is split into a single character array console.log(Array.from("Matt")); // ["M", "a", "t", "t"] // Array.from() performs a shallow copy of an existing array const a1 = [1, 2, 3, 4]; const a2 = Array.fr ...

Added by nykoelle on Thu, 13 Jan 2022 03:56:11 +0200

The knowledge points of callback function in JavaScript are all here!

Author: shadeTranslator: front end XiaozhiSource: dmitripavlutinThere are dreams and dry goods. Wechat search [Daqian world] pays attention to this bowl washing wisdom who is still washing dishes in the early morning.This article GitHub https://github.com/qq449245884/xiaozhi It has been included. There are complete test sites, materials and my ...

Added by wjwolf79 on Thu, 13 Jan 2022 02:24:52 +0200

Network protection notes -- XSS vulnerability exploitation

Browser homology policy summary In 1995, the same origin policy was introduced by Netscape. At present, all browsers implement this policy. Initially, it means that the Cookie set by page A and page B cannot be opened unless the two pages are "homologous". The so-called "homology" refers to "three sameness": ...

Added by fahhem on Wed, 12 Jan 2022 20:15:02 +0200

javaScript learning notes "switch statement", "breakpoint", "ternary operation", "while loop" and "for loop"

switch Statements Swith statement structure:         switch (key) {         case value:             break;         case value:             break;         case value:             break;         default:             break;     } var x = prompt('Please enter an option A-D'); switc ...

Added by NS on Wed, 12 Jan 2022 20:08:24 +0200

Handwritten a simple bundler packaging tool to take you to understand the principle of Webpack

🥝 preface As we all know, webpack is a packaging tool. Before we configure it, it is also a packaging tool generated after a series of coding. What has been done behind this? Today, let's use native js to write a simple packaging tool bundler to package the project code. Let's begin with the explanation of this article~ 🍉 Module ana ...

Added by Stingus on Wed, 12 Jan 2022 08:36:01 +0200

Punch in the third day of JS Foundation

//1 there are three types of loops in JS for loop while loop do while Loop 1 for loop Repeated execution of some code, usually related to counting 1.1 grammatical structure //for (initialization variable; condition expression; operation expression){ //Circulatory body // } //Initialization variable is a common variable declared with va ...

Added by davitz38 on Wed, 12 Jan 2022 05:14:37 +0200

vue project realizes pdf Online Preview

Pdf has been used for PDF preview before JS, I want to simplify this time. I decided to use Vue PDF. Although it is not as powerful as native, it has met common requirements. The important thing is that this component is easy to use. Now let's get to the point! 1, Install Vue pdf npm install --save vue-pdf 2, Register on the required page & ...

Added by paruby on Wed, 12 Jan 2022 05:10:44 +0200

Annual bus inspection_ mui project summary

Technical summary1, Real name authentication page (RealNameAuthentication.html)1. The camera takes pictures of the mask, and the front end is not easy to realizeSolution: solved with native code. After entering the shooting interface, js calls the following functions (this function contains the network request)function idCardPut(ruid, okCallbac ...

Added by efficacious on Wed, 12 Jan 2022 04:27:06 +0200

Common methods for ES5 and ES6

Common methods for @[TOC] ES5 and ES6 ES5 and ES6 What we call ES5 and ES6 is actually just a version of the js grammarFor example, we use WeChat The earliest version was unpaidOver time, a version emerged that included payment functionality ECMAScript is the syntax of js Previous versions did not have some functionalitySome features we ...

Added by d-fraz on Tue, 11 Jan 2022 19:49:32 +0200