1.声明action常量 export const INCREASE = 'INCREASE' export const GETSUCCESS = 'GETSUCCESS' 2.初始化state数据 const initialState = { number: 1, lists: [ { text:... ...
分类:
其他好文 时间:
2017-04-19 00:28:06
阅读次数:
145
在说这个问题之前,必须先解释一下,我们在引入project的时候,xcode会给我们3个选项 1.Copy items if needed 主要是说明,是否要将文件复制到project所在文件夹。 假设不选中。并且该库文件不在project文件夹下。引入文件的时候就不过引入逻辑链接,不复制文件。(假 ...
分类:
其他好文 时间:
2017-04-18 09:31:23
阅读次数:
186
【转】https://github.com/valor-software/ng2-table demo:http://valor-software.com/ng2-table/ ng2-table 一.API Installation npm i ng2-table --save Usage imp ...
分类:
其他好文 时间:
2017-04-17 00:33:59
阅读次数:
691
本文来源:http://www.zretc.com/technologyDetail/464.html Entry是Map接口中的一个内部接口,它是实现键值对存储关键。在HashMap中,有Entry的实现类,叫做Entry。Entry类很简 单,里面包含key,value,由外部引入的hash,还 ...
分类:
编程语言 时间:
2017-04-13 18:08:47
阅读次数:
223
Sounds like you need autossh. This will monitor an ssh tunnel and restart it as needed. http://www.debianadmin.com/autossh-automatically-restart-ssh-s ...
分类:
其他好文 时间:
2017-04-11 16:57:47
阅读次数:
272
短路验证: 若对一个字段使用多个验证器,默认情况下会执行所有的验证。若希望前面的验证器没有通过,后面的验证器就不再执行,可以使用短路验证。 1、如下拦截器,如果输入字符串,提交表单后,默认是会出现三个错误:字段转换失败、conversion验证失败、取值范围失败。 2、如果使用短路验证,则如果输入字 ...
分类:
其他好文 时间:
2017-04-10 19:47:12
阅读次数:
376
According to the tutorials (http://circos.ca/documentation/tutorials/), to draw a graph using circos, at least three files needed. Download the softwa ...
分类:
其他好文 时间:
2017-04-01 00:51:21
阅读次数:
339
rpm -ivh rabbitmq-server-3.6.9-1.el6.noarch.rpm error: Failed dependencies: socat is needed by rabbitmq-server-3.6.9-1.el6.noarch Step 1: wget --no-ca ...
分类:
其他好文 时间:
2017-03-31 17:05:14
阅读次数:
2181
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given inte ...
分类:
其他好文 时间:
2017-03-25 13:03:55
阅读次数:
130
在mysql主从同步时经常会用到Xtra, XtraBackup可以说是一个相对完美的免费开源数据备份工具,支持在线无锁表同步复制和可并行高效率的安全备份恢复机制相比mysqldump来说优势较大好处多,在RHEL6中安装XtraBackup时会发生缺少依赖包的现象 本案例针对Xtra缺少依赖包的情 ...
分类:
其他好文 时间:
2017-03-21 23:59:21
阅读次数:
1083