swift design pattern learning-decoration pattern
Mobile access is not good, please visit me Personal blog
Decoration mode
The function of an object is dynamically extended without changing the original class file and using inheritance. It wraps real objects by creating a wrapping object, or decoration.
Characteristics of Decoration Mode
Decorative objects and real objects have the sam ...
Posted by raytri on Mon, 25 Mar 2019 03:18:31 -0700
JavaScript Core for OC and JS Interaction
Reprinted from: http://www.cnblogs.com/markstray/p/5757255.html
JavaScript Core provides the Obj-C API bridged by JavaScript and Objective-C. JavaScript Core provides the ability to execute JavaScript scripts without UIWebView, and seamlessly transfer values or objects between Objective-C and JavaScript using modern Objective-C grammars such ...
Posted by Kulak on Mon, 25 Mar 2019 01:45:29 -0700
[JAVA] 8. Classes and Objects
Object-Oriented (OPP)
Object-oriented is an idea
Process Oriented: Emphasizing Process, Functional Behavior (Executor)
Object-Oriented: Encapsulate functions into objects, emphasizing functional objects (commanders)
Three characteristics: encapsulation, inheritance, polymorphism
Development: It's about finding objects to use. Without an obje ...
Posted by roldahayes on Sun, 24 Mar 2019 19:42:29 -0700
Common problems and precautions of H5 project
Common problems and precautions of H5 project
Meta Basic Knowledge:
H5 page window automatically adjusts to device width and prohibits users from scaling pages
//I. HTML Page Structure
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
// Width sets the viewp ...
Posted by stitchmedia on Sun, 24 Mar 2019 13:51:29 -0700
Weex introductory tutorial 3, using Vue to develop Weex pages
Environmental installation
Here is a brief introduction and a detailed look. rom
Node.js environment
Node.js official website
Normally, with the Node.js environment installed, the npm package management tool is installed. Therefore, use npm directly to install weex-toolkit.
npm is a JavaScript package management tool that allows deve ...
Posted by jmcall10 on Sun, 24 Mar 2019 13:12:27 -0700
Android's inability to receive boot-up broadcasts (SD card)
Copyright Statement: This article is the original article of the blogger. It can not be reproduced without the permission of the blogger.
Android When the mobile phone is turned on, it will send android.intent.action.BOOT_COMPLETED broadcasting, which can be monitored by listening to the broadcasting.
The general steps are a ...
Posted by bltesar on Sun, 24 Mar 2019 02:45:28 -0700
Principle and Application of Three Kinds of android Animation
android animation is currently divided into three categories:
Tween Animation View animation is a progressive animation that produces animation effects by constantly transforming images (translation, zooming, rotation, transparency) of objects in the scene. And View animation supports customization.
Drawable Animation frame animation, which ...
Posted by Roble on Sat, 23 Mar 2019 21:57:27 -0700
Source Code Analysis of Android Doze Mode
Bionics of science and technology is ubiquitous and gives us inspiration. In order to prolong the battery life, google learned from the snake hibernation that in some cases mobile phones can also enter the hibernation-like situation, thus introducing today's theme, Doze mode, Doze Chinese is napping, napping certainly saves energy than activity ...
Posted by nigma on Sat, 23 Mar 2019 07:42:54 -0700
JAVASE Foundation - day08 (Object Oriented)
08.01 Object Oriented (Overview and Classification of Code Blocks) (Understanding) (Interview questions, development is not used or rarely used)
A: Overview of Code Blocks In Java, code enclosed with {} is called a block of code.
B: Code Block Classification According to its location and declaration, it can be divided into local code block, ...
Posted by drewklue on Fri, 22 Mar 2019 03:36:53 -0700
Python learns day5 homework
title: Python learns day5 homework
tags: python
author: Chinge Yang
date: 2017-01-27
---
Python learns day5 homework
@ (Learning) [python]
[TOC]
ATM and Shopping Mall
Job requirement
ATM:
Designated maximum overdraft
Withdrawable
Periodic repayment (monthly repayment on a specified date, e.g. No. 15)
Deposit available
Pay bills regularly
Sup ...
Posted by peddel on Fri, 22 Mar 2019 02:15:53 -0700