Construction of Front-end Project Development Environment
1. NoeJS installation
I'm a Mac user, so I use homebrew Installed nodeJS
The statement installed is
brew install node
Running after installation
node -v //Look at the version of node. My version is v7.4.0.
2. Install flow, pcre, watchman
brew install flow ...
Posted on Fri, 05 Apr 2019 13:33:30 -0700 by dub
anti-patterns refer to the coding mode that violates the react idea.
In App component, this paper dynamically displays Model component through Model.show and realizes data interaction through Promise asynchronous form.
This example includes 1. using jsx dynamic display components; 2. using this.props in getInitial State
Code address: h ...
Posted on Thu, 04 Apr 2019 11:24:29 -0700 by Tuck
This section continues Upper segment This article explores how to use wait/notify to achieve more collaboration scenarios.
Start at the same time
At the same time, similar to an athlete's game, it starts at the same time after hearing the shooting of the game. Next, we simulate the process. Here, there is a main thread and N sub-threads, each s ...
Posted on Tue, 02 Apr 2019 11:21:29 -0700 by shaunmckinnon
1. Download official demo
2. After importing Android studio, comment out the signing.gradle part of app/build.gradle, because there is no signature script in demo
Use your own signature to generate the signature file and configure it in app/build.gradle, as shown below
apply plugin: 'com.android. ...
Posted on Mon, 01 Apr 2019 20:18:29 -0700 by xeross
Recently, I encountered a problem. Picasso is the picture loading framework for the project, okhttp is the network loading framework. Sometimes the project can load the rotation graph normally, sometimes it will fail to load, prompting decodestream to return null.
First of all, we need to determine which link has gone wrong.
A lot of questions ...
Posted on Mon, 01 Apr 2019 18:42:29 -0700 by CountryGirl
This chapter mainly talks about the use of SearchView in ToolBar and the simple use of Shared Preferences.
GitHub address: Completion of Chapter 25
SearchView is an Action View (Operational View). The so-called Operational View is a view that can be built into the toolbar. SearchView allows the entire search interfac ...
Posted on Mon, 01 Apr 2019 13:03:28 -0700 by laffin
In the development process, it is inevitable to face the need to achieve multiple layout types in a list. I read this article.
Benefit a lot from this, to make a small demo, from the design point of view through two different ways to achieve a simple multi-type list, the effect is as follows:
Posted on Mon, 01 Apr 2019 11:18:29 -0700 by ahzulfi
It's been a year since I learned spring. Today I want to deepen my understanding.
IOC (Inversion of Control): Control Inversion, Dependency Injection
What is control?
Inversion and destruction of control objects
What is inversion?
Deliver control of objects to IOC containers
Before spri ...
Posted on Mon, 01 Apr 2019 01:18:28 -0700 by soadlink
1. Definition of stack
Stack is a kind of "first in, last out" data structure. There are two kinds of operation modes: stack-up and stack-out. The following picture:
2. Classification of stacks
Stacks fall into two main categories:
(1) Static stack
(2) Dynamic stack[Static Stack]
The core of a static stack ...
Posted on Sun, 31 Mar 2019 23:42:28 -0700 by hmvrulz
This article refers to http://www.cnblogs.com/wangxiaoqiangs/p/6179610.html, and gains some erroneous experience in its own operation. Write it down for reserve.
1. Download nginx and install it
It is recommended to download and install a detailed tutorial on the official website of nginx. http://nginx.org/en/linux_packages.htm ...
Posted on Sun, 31 Mar 2019 23:24:29 -0700 by shwathi