JavaScript native functions Array.prototype.reduce Practical usage and detailed explanation of essence

Reduce function is one of the array functions in JavaScript, which has powerful functions. But most of the blog's explanations of reduce function are comparison and basis. Basic usage of reduce Let's first look at the basic usage of reduce. Because the basic usage of reduce is explained in detail in MDN, we suggest you go to MDN directly JavaSc ...

Posted by elToro on Sun, 21 Jun 2020 09:31:42 +0200

Understanding an open source, easy to use front-end framework - easyUI

Getting started with easyUI Foreword: About Front End Framework Text: Use of easyUI Overseas: How to develop your own front-end framework Foreword: About Front End Framework The essence of the front-end framework: Personal understanding is essentially a bunch of encapsulated css and js files tha ...

Posted by pazzy on Sat, 20 Jun 2020 18:06:43 +0200

Program life three language implementation - user login interface random verification code, source code sharing!

Before using mobile phone login do not verify code, now login always verify code, boring people to death! So why do you have annoying verification codes every time you log in? In fact, this involves the complete network problem! 1, Application scenario Many partners should know: Prevent hackers from calling the attack system through ...

Posted by pob123 on Fri, 19 Jun 2020 13:30:09 +0200

Hash structure of data structure and algorithm (biased to JS)

Data structure (4) Note: This paper is based on the collation of BiliBili Video [JavaScript data structure and algorithm] hash table Its structure is an array. It converts hashcode into an array's subscript through a hash function Features: compared with array, advantages: insert, query and dele ...

Posted by ilikemath2002 on Fri, 19 Jun 2020 06:02:34 +0200

Diego 1: break through the limit of LAN and control your ROS robot within the scope of Internet

For more maker works, please pay attention to the author's website, yuandingniao, to collect creative and valuable maker works around the world ROS robot knowledge, Diego robot An online statistical process analysis tool SPC completed in spare time and SPC knowledge sharing website qdo 1. Overview On ...

Posted by steeveherris on Fri, 19 Jun 2020 04:40:27 +0200

How to write Vue next response? Detailed explanation of this article

preface 1. This paper will write a response principle in Vue next from scratch. Due to the difficulty of space and understanding, we will only implement the core api and ignore some boundary function points The APIs to be implemented in this article include track trigger effect reactive watch computed2. Recently, many people asked me about th ...

Posted by sorenchr on Thu, 18 Jun 2020 06:06:20 +0200

Common methods of js arrays you don't know

Analysis of Common Methods of js Array Arrays are also object data types and consist of key-value pairs var ary = [12,23,34]; one-dimensional array /* *Structure * 0:12 * 1:23 * 2:34 * length: 3 */ 1. Number as index (attribute name), index increases from 0 2. There is a length property that stores the le ...

Posted by Kurt on Wed, 17 Jun 2020 03:57:25 +0200

Native Js to realize automatic and seamless carousel graph

javascript implementation of automatic seamless rotation chart 1. Implementation principle The principle of the implementation of the rotation chart is to use a large box group container, which contains a small box for moving. The small box contains pictures to be rotated. The pictures are horizonta ...

Posted by chet23 on Tue, 16 Jun 2020 10:21:07 +0200

Understand this keyword thoroughly

Compared with other languages, the performance of this keyword of function in JavaScript is slightly different. In addition, there will be some differences between strict mode and non strict mode. catalog 1. Global environment 2. Function (in operation) environment 3.call and apply 4. bind metho ...

Posted by jibster on Tue, 16 Jun 2020 09:36:53 +0200

Web loading speed optimization

introduction Due to the recent work requirements, the user's loading speed needs to be greatly optimized.Next, I will make a summary from the aspect of network request optimization. 😀 Some pictures are Sprite Sprite map is also called CSS sprite. It is a kind of CSS image synthesis technology, which can reduce network requests by making multipl ...

Posted by nano on Mon, 15 Jun 2020 09:28:52 +0200