Intensive reading of "use what changed source code"

1 Introduction When using React Hooks, there are often too many executions or even a dead cycle. We can use use-what-changed Do dependency analysis to find out which variable reference has been changing. According to an example, for example, you try to render the Function component inside the Class component, which is written as follows: class ...

Added by okyejr on Mon, 15 Jun 2020 05:25:59 +0300

vue (11): route parameters, route nesting, route naming view

Route parameters Routing parameters are divided into two categories: url parameters and to parameters in < router link > tags url reference 1. query parameters <div id="app"> <router-link to="/login?id=10&name='Ha ha ha'">Sign in</router-link> <router-link to="/registe ...

Added by SuperCam on Mon, 15 Jun 2020 04:54:59 +0300

Python 3 web crawler: Comics downloading, dynamic loading, and anti crawler are nothing

    1, Foreword By Jack Cui After the learning of the last two articles, Python crawler takes three steps: request initiation, data parsing and data saving. Have you mastered them? Are they entry-level crawlers? No, it's not enough! Only mastering these skills can only be regarded as layman level. Today, let's continue to learn how to clim ...

Added by cshaw on Thu, 11 Jun 2020 10:01:27 +0300

Summary of JS important knowledge points (unfinished)

Summary of JS important knowledge points 1. Four ways to query data types Implementation method typeof instanceof constructor Object.prototype.toString.call() advantage Easy to use Can detect reference data types Basic ability to detect all types (except null and undefined) All types detected ...

Added by jcanker on Thu, 11 Jun 2020 08:26:56 +0300

JS Event Processing Details

An event is an action of a user, and event handling is a function that handles that action.In this section, let's look at event handling in JS. Article Directory Three ways to add event handling Add in line Label Attribute Add Add Event Listening Focus Events Click and double click events Mouse even ...

Added by Grim... on Tue, 09 Jun 2020 19:10:37 +0300

Great introductory TypeScript tutorial (1.2W words)

Look at this for a little friend who wants to learn TypeScript. This article will take you step by step to learn 14 points related to getting started with TypeScript. See the following picture for a detailed outline: 1. What is TypeScript TypeScript It is a free and open source programming language developed by Microsoft.It is a superset of Ja ...

Added by pennythetuff on Tue, 09 Jun 2020 04:19:48 +0300

vue upload image to base64, binary array, save encoded data to file

functional requirement 1. Picture to base64 2.base 64 to binary array 3. Save binary data to file and download to local resolvent Question 1: reference material vue element upload picture to base64 Specific code getBase64(file) { return new Promise(function (resolve, reject) { let reader = new FileReader(); let imgResu ...

Added by error_22 on Fri, 29 May 2020 17:49:11 +0300

Hegel: aspire to be the best JavaScript static type checker

Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on! As a rookie in JavaScript type checker, Hegel aspires to be the best JavaScript static type checker. It claims to provide a reliable type system with strong type inference. At ...

Added by drakal30 on Fri, 29 May 2020 09:31:34 +0300

PHP and Thinkphp simulated message board to deal with XSS attack (super complete!)

XSS attack principle and protection brief introduction XSS(Cross Site Scripting) is a common way in Web attacks. Through this attack, users can be controlled to do a series of malicious operations, such as stealing, tampering, adding users' data or inducing to phishing sites. Attack principle A common way is to use unfiltered parameters to pass ...

Added by Nothsa on Thu, 28 May 2020 07:50:18 +0300

JS Array Method Complete

  1. Before using the methods of arrays, you need to create arrays, which can be created in the following ways: Literal Quantity (json) var arr1 = []; //Create an empty array var arr2 = [5]; //Create an array with a single element var arr3 = [5,6,7]; //Create an array with multiple element ...

Added by gprobst on Tue, 26 May 2020 20:21:46 +0300