Builder mode and StringBuilder source code
Builder pattern
Builder mode is an object creation mode, which is used to create composite objects. When an object is composed of multiple objects, and the combination may change greatly, the construction of sub objects and the combination of sub objects can be encapsulated by using builder mode. Her ...
Posted by Ziq on Wed, 29 Jan 2020 05:42:13 +0100
Applet Display All Cities List Interface
Interface Design
Reference to wx applet index list component
gitbub address: https://github.com/mehaotian/wx-list-index
Above:
js file:
All city information is available in ajax, which I get from the allCity.js file
var city = [
{
title: "Popular Cities",
type: 'hot',
item: [
{
"name": ...
Posted by velanzia on Mon, 27 Jan 2020 17:05:14 +0100
C ා notes -- the application of object-oriented basic set in OOP
(1) Generic collection List
1) Introduction
Limitations of arrays:
The number of array elements is fixed. Once an array is defined, the total number of elements cannot be changed. If the requirements change, the source code must be modified;
If the total number of initialization elements is very ...
Posted by flashmonkey on Mon, 27 Jan 2020 09:40:31 +0100
Reuse of component state logic: render props mode and higher-order components
Article directory
1, Render props mode
1.1 overview of react component reuse
1.2 thinking analysis
1.3 operation steps
1.4 children instead of the render attribute
1.5 code optimization
2, High order components
2.1 overview
2.2 thinking analysis
2.3 use steps
2.3 settings ` displayName`
2.4 transf ...
Posted by abduljan on Mon, 27 Jan 2020 08:52:43 +0100
Read the source code of mybatis -- Interceptor
Reprinted from Read the source code of mybatis (8) -- Interceptor
1 Intercetor
MyBatis allows you to make intercept calls at some point during the execution of mapped statements. By default, MyBatis allows the use of plug-ins to intercept method calls including:
Executor (update, query, flushState ...
Posted by steelmanronald06 on Mon, 27 Jan 2020 06:01:59 +0100
Rough learning SE
clone
protected Object clone()
Creates and returns a copy of this object.
protected Object clone() throws CloneNotSupportedException
All classes inherit Object, so all classes have clone() methods. But not all classes want to be cloned. They must support the clonable interface. This interface does ...
Posted by sixdollarshirt on Fri, 24 Jan 2020 11:01:42 +0100
TypeScript Fragrance Series-Interface
Preface
The content of TypeScript fragrance series will be referenced Chinese Documents However, the examples in this paper will not duplicate those in the document, and will be studied in some places.In addition, the results of some of the examples in this article are compiled into JavaScript without ...
Posted by severndigital on Fri, 24 Jan 2020 02:55:04 +0100
Web Foundation - HTML&CSS
Article Directory
HTML tags: form tags
CSS: Page Beautification and Layout Control
1. Concepts: Cascading Style Sheets Cascade Style Sheets
2. Benefits:
3. Use of CSS: How CSS works with html
1. Inline Styles
2. Internal Style
3. External Styles
4. css syntax:
5. Selector: Filter elements with simi ...
Posted by paulrichards19 on Thu, 23 Jan 2020 02:44:31 +0100
H5 Browser Custom User Control
Reference article:https://css-tricks.com/custom...https://blog.hellojs.org/crea...
Native User Control
For the <video>tag, there is a property called'controls', which adds native pause/start, progress bar, volume, video maximization to the player as follows.
<video id="myVideo" controls ...
Posted by kevintynfron on Wed, 22 Jan 2020 02:12:04 +0100
Pandas Library of Python -- pandas data structure
This blog is a reading note of "data analysis by Python". Please do not reprint it for other business purposes.
1,Series
Series is a one-dimensional array object, which contains a sequence of values and data labels, called index es. The simplest sequence can be just an array:
import pa ...
Posted by norpel on Tue, 21 Jan 2020 15:04:09 +0100