How to use functions to optimize performance?
I. Throttle function
1. Use scenarios
DOM.onclick() event, we bind a click event to a DOM node, trigger the execution of the event function when clicking on the element, but when we click on the element frequently, it will continue to trigger the click event. If the event function triggered by the click event is DOM element, it will cause high ...
Added by metroblossom on Tue, 14 May 2019 21:56:43 +0300
A thorough understanding of sorting algorithms
The original address is: A thorough understanding of sorting algorithms
A thorough understanding of sorting algorithms
Classification: algorithm
2013-09-26 22:20
61 people read
comment(0)
Collection
Report
There is a little obsessive-compulsive disorder, always feel like writing on the reprint, ...
Added by kyoru on Tue, 14 May 2019 15:51:35 +0300
Research on Switching Page Theme Style and less Tutorial
One day, a big man in the headline asked me, I heard that you had made theme switching in the project before, how did you achieve it at that time? Can you elaborate on it?
If you already know less like the palm of your hand, Start right here..
From less
Use
Less is used in Node.js environment:
npm install -g less
> lessc styles.less styles. ...
Added by moe180 on Sun, 12 May 2019 13:24:49 +0300
In-depth analysis of Nominated Pods of Kubernetes Scheduler
Author: xidianwangtao@gmail.com
stay Kubernetes 1.8 Preemption Source Code Analysis for Preemptive Scheduling We mentioned Nominated Pods in several places, but did not give enough analysis at that time. Today we will focus on the significance and principle of Nominated Pods.
What is Nominated Pods?
When enable PodPriority feature gate is ena ...
Added by gca07738 on Sun, 12 May 2019 10:59:00 +0300
Common Sorting Algorithms
Sort:
1. Sorting is often encountered in computer data processing. In daily data processing, it is generally believed that 1/4 of the time is spent on sorting, while for program installation.
Up to 50% of the time is spent sorting tables. In short, sorting is the ordering of a random set of data in a regular order.
2. Inline and Outline: Acc ...
Added by kapishi on Sun, 12 May 2019 10:11:44 +0300