Basic knowledge of js (public method, private method, privileged method)
Basic knowledge of js (public method, private method, privileged method)
Public Method: A public method is a method that can be accessed and invoked externally.
It can be understood as creating a static method like Rest.
//This definition is equivalent to ** static, accessible directly through Rest **.
var Rest = {
name: 'rest',
// pu ...
Posted by Kardall on Wed, 10 Apr 2019 10:30:31 -0700
Android View Event Distribution Mechanism
Reprint: Android View Event Distribution Mechanism
Surely many android developers have encountered gesture conflicts, and we usually solve these problems through internal and external interception methods. To understand the principle, you must understand the distribution mechanism of View. Before that, let's look at the following three very i ...
Posted by ksukat on Wed, 10 Apr 2019 03:15:32 -0700
The Principle of Automatic Return and Red Packet Grabbing by Wechat (2): Automatic Return
Before reading this article, you need to know about Accessibility Service. You can read my last article first.The Principle of Automatic Return and Red Packet Grabbing in Wechat (1): Introduction and Configuration of Accessibility Service
Friends already know can read this article directly.
After completing the configuration of Accessibili ...
Posted by jd6th on Wed, 10 Apr 2019 00:24:31 -0700
Build a catalogue for your blog posts
Build a catalogue for your blog posts
1. Write in front
This should be seen in the past few days. Hibernate User Manual Speaking of it.
This Handbook is really long, and it's all in English. For me who just passed CET-4, it's really hard to read. This "laborious" performance is that I often look at it and forget where I see it. The im ...
Posted by SirChick on Tue, 09 Apr 2019 13:03:31 -0700
Simple and easy to use custom Dialog (1)
First, a brief introduction.
In Android development, we often need to pop up some dialog boxes on the Android interface, such as asking users or letting them choose. These functions are called Android Dialog dialog boxes. Now I will introduce several ways to use Android Dialog dialog boxes, hoping to help you.
Dialog
Dialog, a dialog b ...
Posted by plasmahba on Mon, 08 Apr 2019 18:15:30 -0700
es6 Quick Start
es6 Quick Start
ES6 introduction
ECMAScript 6.0 (hereinafter referred to as ES6) is the next generation standard of JavaScript language, which was officially released in June 2015. Its goal is to enable JavaScript language to be used to write complex large-scale applications and to become an enterprise-level development language.
The relations ...
Posted by capslock118 on Mon, 08 Apr 2019 16:27:31 -0700
React Source Analysis 4-React Life Cycle Details
1 React Life Cycle Process
The invocation process can be seen in the figure above. It can be divided into three different stages: instantiation, existence and destruction. There are many articles about the life cycle process. I believe most of the students also know something about it. We will not analyze it in detail. Many students have do ...
Posted by sharugan on Mon, 08 Apr 2019 02:54:30 -0700
Analysis of Kafka Log Compaction
Looking at the Kafka document recently, I found that Kafka has one. Log Compaction Functions we haven't noticed before, but they have high potential practical value.
What is Log Compaction
Every piece of data in Kafka has a pair of Keys and Value s, which are stored on disk and will not be preserved permanently, but delete the earliest written ...
Posted by AmandaF on Sun, 07 Apr 2019 07:12:31 -0700
Android< Handler mechanism I understand >
1. Why need Handler mechanism
In my < How Threads and Processes Work in Android > In this article, it is clearly stated that when the application is started, the system will create an execution thread named "main thread" for the application. This thread is important because it is responsible for dispatching events to correspon ...
Posted by jfugate on Tue, 02 Apr 2019 12:30:29 -0700
while statement in python
while usage
The while condition satisfies:
Conditional Execution Statements
else:
Statements executed without satisfying conditions
Such as:
i=0
sum=0
while i<=100:
sum +=i
i+=1
print(sum)
while dead cycle
while True:
print('~~~~~~~~~~~~~')
while 2>1:
print('%%%%%')
while nested loop
n = int(input('Please enter th ...
Posted by Coronet on Mon, 01 Apr 2019 14:18:30 -0700