20170607-Object-Oriented 02-Inheritance

inherit 1 prototype chain Prototype chain is the main method to realize inheritance. The basic idea is to use prototypes to let one reference type inherit the attributes and methods of another reference type. Relationships among constructors, prototypes and instances Each constructor has a prototype object. The prototype object contains a point ...

Added by nickvd on Tue, 25 Jun 2019 01:17:55 +0300

20170607 - Object Oriented 01 - Object Creation

create object 1.Object constructor Create an instance of Object by adding attributes and methods to it (the pattern for creating objects early) var person = new Object(); person.name = "Nicholas"; person.age = 29; person.job = "Software Engineer"; person.sayName = function(){ alert(this.name); } 2. Object literals var person = { name: ...

Added by metkat on Tue, 25 Jun 2019 00:47:29 +0300

springmvc Request Binding Annotation Details

One @RequestMapping RequestMapping is an annotation used to process the request address mapping and can be used on classes or methods. For classes, the address is used as the parent path for all methods in the class that respond to requests. The RequestMapping annotation has six attributes, which we will describe in three categories. 1, va ...

Added by skope on Tue, 25 Jun 2019 00:38:51 +0300

Android custom properties

1. Implementation of Android Custom Properties 1.1 Customize a View package com.self.view.view; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.support.annotation.Nullable; import android.util.AttributeSet; imp ...

Added by joecrack on Mon, 24 Jun 2019 23:19:55 +0300

IOS CAEmitter Layer Implementing Animation Effect of Particle Emission

IOS CAEmitter Layer Implementing Animation Effect of Particle Emission Design sketch The code has been uploaded to GitHub: https://github.com/Silence-GitHub/CoreAnimationDemo The animation effect is realized by CAEmitter Layer. CAEmitter Layer displays particle emission animation, the specific particles are encapsulated by CAEmitter Cell. The ...

Added by Joe689 on Mon, 24 Jun 2019 01:32:50 +0300

Day 34: js summary + rewrite js calendar

Requirements: The mouse hover shows what happened this month. Events used are: onmouseover, onmouseout (the more silly method), the first time I think of this silly method. Moreover, display ing is not used, so it's a wonderful thing to make. However, my sister is a very good person, so she gave me some ideas, and today after reading the sourc ...

Added by MeanMrMustard on Mon, 24 Jun 2019 00:14:37 +0300

[128 days] Shang Xue Gao Qi Java300 set video highlights notes (56-58)

Episode 56-57: Use of StringBuilder and StringBuffer Distinguish String, String Buffer, String Builder StringBuilder variable string, thread is not safe, but efficient, recommended to use. StringBuffer variable string, thread-safe, but inefficient, not recommended. String is an immutable string, which should be used in real time and not in loo ...

Added by tjodolv on Sun, 23 Jun 2019 01:31:07 +0300

HTML+CSS Development (IV) CSS Control

A CSS Style Refer to the css manual Two CSS Location 1.static Location Following the HTML location rules, the position is displayed normally. 2. Relation Location Offset the specified distance relative to the position normally displayed; as follows, offset 30px to the right. <!DOCTYPE html> <html> <head> <title&g ...

Added by Waseem Ullah Kh on Sat, 22 Jun 2019 22:50:05 +0300

Android Development Notes (148) Custom Input Soft Keyboard

Text input on mobile phones is through the system's own soft keyboard, which can be Android's own, or a third-party soft keyboard such as Sogou input method. In most cases, the system's own soft keyboard has been enough, but there are always a few cases, the system's soft keyboard can not meet the requirements of developers, such as the followi ...

Added by gwolgamott on Sat, 22 Jun 2019 22:15:16 +0300

Implementation of ScrollView Rolling Animation Summary (Thunderstorm) with Android's Custom Animation Framework

What is a framework? It must be for others. Since we want to use it for others, we need to consider what kind of framework others will use, not be scolded, and will always use. To achieve the above, our framework must be powerful, able to solve the pain points of each of us in the development process, stable, will not have a negative impact on ...

Added by gotDNS on Sat, 22 Jun 2019 02:25:31 +0300