17. Writing React Applications without ES6

17. Writing React Applications without ES6 Usually you can use a JavaScript class function to define a React component: class Greeting extends React.Component { render() { return <h1>hello {this.props.name}</h1>; } } If you haven't used ES6 yet, you have to use React.createClass to create a component: var G ...

Posted on Mon, 17 Jun 2019 17:39:23 -0700 by mindevil

Fluent Fetcher: Reconstructing Fetch-based JavaScript Network Request Library

Fluent Fetcher: Reconstructing a Fetch-based JavaScript Network Request Library Subordinate to the author Web Development Foundation and Engineering Practice This series of articles and projects describes the design, reconstruction and implementation process of the Fetch package library used internally. Fluent Fetcher: Reconstructing a Fetch- ...

Posted on Mon, 17 Jun 2019 15:49:17 -0700 by esport

React+dva+webpack+antd-mobile combat sharing (I)

Before looking at this article, I still suggest that children who want to think about react can choose create-react-app to create react project, because now dva and roadhog are not mature, pits are relatively more, of course, if you are ready to jump, then please continue to go down; This article is suitable for those who have some knowledge of ...

Posted on Mon, 17 Jun 2019 13:44:58 -0700 by keefy

Note 5 of Advanced Programming in javascript

Chapter V Types of References In the previous chapter, the author mentioned the concept of reference type when he was talking about the value of a variable. There are basic types and reference types in JavaScript, and reference types are very important. There are many things we need to pay attention to. From the directory, you can see that the ...

Posted on Sun, 16 Jun 2019 15:50:48 -0700 by awared

async function of JS asynchronism

This article is the last in a series of articles entitled Deep Understanding of ECMAScript 6 Asynchronous Programming. The Meaning and Usage of Generator Function The Meaning and Usage of Thunk Function The meaning and usage of co function library The Meaning and Usage of async Function I. Ultimate Solution Asynchronous operation is a trou ...

Posted on Sun, 16 Jun 2019 13:00:49 -0700 by amandas

Algorithms in Web Advanced JavaScript

algorithm Sorting algorithm Stable sorting The order of equal elements in the sequence to be sorted does not change after the sorting is completed. Unstable sorting Order Degree Number of element pairs with ordered relationships in the sequence to be sorted. Degree of reverse order 1. Insert Sort Traverse through the ordered array to find th ...

Posted on Sun, 16 Jun 2019 10:09:10 -0700 by a94060

Type Judgment for JavaScript Themes (Part Two)

Preface In the previous article Judgment of the Type of JavaScript Theme (Top) In this article, we copy jQuery to write a type function to detect common data types, but there are more complex judgments in development, such as plainObject, empty object, Window object, etc. Let's go on to copy jQuery to see these types of judgments. plainObject p ...

Posted on Sun, 16 Jun 2019 09:39:22 -0700 by mrjoseph.com

XSS Defense - Using AntiSamy

AntiSamy is an open source project of OWASP. It checks and cleans the HTML / CSS / JavaScript input by users to ensure that the input conforms to the application specifications. AntiSamy is widely used in the defense of storage and reflection XSS in Web services. 1. maven dependence AntiSamy can be imported directly into the project, but i ...

Posted on Fri, 14 Jun 2019 12:13:20 -0700 by prashant0812

Analysis of Script Loading Principle from RequireJs Source Code

Introduction As the saying goes, programmers who don't like studying principles are not good programmers, and programmers who don't like reading source code are not good jser s. These two days, I saw the problem of front-end modularization, and I found that the JavaScript community is really working hard for front-end engineering. Today, I stu ...

Posted on Thu, 13 Jun 2019 16:57:43 -0700 by rodin69

Blasting around front end encryption

1. Overview Nowadays, many web s encrypt account passwords with js in the process of landing, and then transmit them. We can see that account passwords are ciphertext rather than plaintext by using the package caught by the proxy tool, which will cause obstacles to mass blasting or database collision, so this article analyses how to solve this ...

Posted on Thu, 13 Jun 2019 16:10:41 -0700 by cags