iOS中控制器的生命周期 一般我们在创建控制器的时候,有三种方法。 1. 直接通过代码创建 2. 通过storyboard创建 3. 通过Xib,在创建控制器的时候传入一个Xib文件作为这个控制器的view。 直接通过代码创建 通过代码创建这种凡是,我们打印调用顺序可以发现 对应的代码调用顺序就是 ...
分类:
移动开发 时间:
2017-07-28 00:56:18
阅读次数:
298
Because Nuxt renders pages on the server, you should use the nuxt-link components to navigate between pages. Each time a page loads, you can check if ...
分类:
Web程序 时间:
2017-07-24 21:28:03
阅读次数:
247
今天在使用git时,git pull和git merge时,经常出现如下错误信息: Please enter a commit message to explain why this merge is necessary.(请输入提交消息来解释为什么这种合并是必要的) 解决方法: 1.按“Esc”退 ...
分类:
其他好文 时间:
2017-07-24 20:22:32
阅读次数:
500
?? When developing applications for Android, one often facesthe problem of displaying some graphical content from the Internet. So, youshould provide ...
分类:
移动开发 时间:
2017-07-23 15:27:41
阅读次数:
256
计数信号量用来控制同时访问某个特定资源的操作数或同时执行某个指定操作的数量 A counting semaphore.Conceptually, a semaphore maintains a set of permits. Each acquire blocks if necessary unti ...
分类:
数据库 时间:
2017-07-22 15:32:58
阅读次数:
312
近期总体过了下AQS的结构。也在网上看了一些讲AQS的文章,大部分的文章都是泛泛而谈。又一次看了下AQS的代码,把一些新的要点拿出来说一说。 AQS是一个管程。提供了一个主要的同步器的能力,包括了一个状态,改动状态的原子操作。以及同步线程的一系列操作。它是CLHLock的变种,CLHLock是一个基 ...
分类:
编程语言 时间:
2017-07-21 18:15:28
阅读次数:
234
A. Who is the winner? time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output A. Who is the winner ...
Given a string which contains only letters. Sort it by lower case first and upper case second. Notice It's NOT necessary to keep the original order of ...
分类:
其他好文 时间:
2017-07-17 15:19:57
阅读次数:
216
【create-react-app之Invalid Host Header】 1、When you enable the `proxy` option, you opt into a more strict set of host checks. This is necessary because ...
分类:
移动开发 时间:
2017-07-15 23:55:34
阅读次数:
1300
React 的主要思想是通过构建可复用组件来构建用户界面。所谓组件其实就是 有限状态机,通过状态渲染对应的界面,且每个组件都有自己的生命周期,它规定了组件的状态和方法需要在哪个阶段进行改变和执行。有限状态机(FSM),表示有限个状态以及在这些状态之间的转移和动作等行为的模型。一般通过状态、事件、转换 ...
分类:
其他好文 时间:
2017-07-13 22:46:42
阅读次数:
138