Learning Design Ideas and JS Characteristics from jQuery Core Source Code

I. reading guidance Article as a form of learning notes, recording learning experience and knowledge of principles, if there is a mistake, welcome to correct. This article starts with some simple jQuery source code to analyze where a framework starts and what js does at the bottom. Understanding his design ideas, the overall architecture of jqu ...

Posted on Sun, 06 Oct 2019 04:26:44 -0700 by DoctorWho

The front end converts the data returned from the back end into tree-structured data

demo Method One Recursion data var data = [ { "area_id": 5, "name": "Guangdong Province", "parent_id": 0, }, { "area_id": 6, "name": "Guangzhou City", "parent_id": 5, }, { "area_id": 7, "name": "Shenzhen City", "parent_id": 5, }, { "area_id": 4, "name": "Market", "p ...

Posted on Sun, 06 Oct 2019 03:15:31 -0700 by Ozzmosis

react advanced features

After using react for so long, I didn't know that react had so many advanced features. I had nothing to do during the vacation. I tried some advanced features of react. Here is the trial record. overview Characteristic characterization Usage scenarios Code segmentation Provide asynchronous components for unpacking Use when you need to opti ...

Posted on Sun, 06 Oct 2019 02:53:17 -0700 by PURU

JavaScript Data Structure and Algorithmic Binary Heap

Binary heap data structure is a special binary tree. It can find the maximum and minimum efficiently and quickly. It is often used in priority queue and well-known heap sorting algorithm. Two fork pile Binary heap has the following two characteristics: It is a complete binary tree. Each layer of the number has left and right sub-nodes (except ...

Posted on Sun, 06 Oct 2019 02:00:49 -0700 by Mad_Mike

React Hook parent component retrieves data/functions of child components

We know that in react, props are often used to transfer child component data to parent component, but the function of parent component calling child component is not often used. Documentation says ref is not the best choice, but thinking of laziness and not learning redux, I found many tutorials on the Internet. Either the hook talks too little ...

Posted on Sat, 05 Oct 2019 23:46:06 -0700 by tjodolv

Note: Nginx proxy axios requests and precautions

Recently, we wrote a small demo. Because of the cross-domain limitation of the interface when we use the online data of a large factory, we use Nginx agent to solve these problems. 1. nginx.conf configuration information Because of the large amount of configuration information of nginx.conf, this article only focuses on following axios and stat ...

Posted on Sat, 05 Oct 2019 20:19:13 -0700 by smileyriley21

Talking about Performance and Data Separation

Inadvertently saw an article on the separation of performance and data, a detailed look, feeling and their understanding is not the same, there is this exploration. 1. What is performance and data separation?Statement 1: Separation of performance and data is MVC, which separates data from business logic and distributes it by the controller. Obv ...

Posted on Sat, 05 Oct 2019 19:05:43 -0700 by bdemo2

Shiro_Project_Purchase Order

Article directory Model Analysis of Purchasing Order 2 Code Implementation 2.1 Party (main table) 2.2 Multidimensional (from table) 2.3 Purchasebill date processing 3 Order Query List 3.1 purchasebill.jsp 3.2 purchasebill.js 3.3 Addition of Query Conditions 4 Add Modification Pop-up Dialog Box 4 ...

Posted on Sat, 05 Oct 2019 06:22:13 -0700 by spighita

Spring MVC+EasyUI Implementing Navigation Menu on the Left of Page

1. Display of effect maps 2. Engineering catalogue structure Note: The resources directory under webapp places easyui and JS (the jQuery file is another)                    3. code index.jsp <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Student Achievement Managem ...

Posted on Sat, 05 Oct 2019 00:55:13 -0700 by shaun112

web front-end entry to actual combat: JavaScript to achieve barrage effect

Barrage is a very common function. The following is a small implementation plan that I encapsulated. There are shortcomings that can be raised or improved freely. Code directly: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta content="width=dev ...

Posted on Fri, 04 Oct 2019 23:24:18 -0700 by srikanth03565