1.组件内部可以是组件 2.组件通过state属性来保存组件的内部状态变量 3.state属性是只读的,只能通过setState()方法来修改 4.组件内部各个兄弟组件间值的传递 5.复杂一点的封装 6.怎样将外部组件里面的值传递出来 :组件之间通过props来通信 将span也封装成一个Compo ...
分类:
其他好文 时间:
2017-05-12 00:21:36
阅读次数:
172
一、安装nginx1.安装依赖包:yuminstallopensslopenssl-develpcreGeoIPperl-develperlperl-ExtUtils-EmbedGeoIP-devellibatomiclibatomic_ops-devel2.安装zlibtar-xfzlib-1.2.11.tar.gz
cdzlib-1.2.11
./configure
make
makeinstall3.添加用户addusernginx-s/sbin/nologin4.编..
分类:
其他好文 时间:
2017-05-10 22:02:20
阅读次数:
627
实例化 首次实例化 getDefaultProps getInitialState componentWillMount render componentDidMount 实例化完成后的更新 getInitialState componentWillMount render componentDid ...
分类:
其他好文 时间:
2017-05-10 13:09:11
阅读次数:
113
什么是vuex? 如果你学过react,那么你就更容易理解vuex,因为vuex相当于react中的redux,它是用于管理数据的工具。 为什么要使用vuex? 因为如果不用vuex,我们也可以控制组件之间的通信,但是会非常的难以管理,而通过vuex我们可以更为方便的控制数据在组件之间的通信。 尤其 ...
分类:
其他好文 时间:
2017-05-09 23:11:49
阅读次数:
203
Model: 1、预处理 ,使用word2Vec 进行词向量转换 -> K维的词向量: ,所以一个句子就是 2、当过滤窗口设为h时,移动窗口设为1时,特征的卷积可变为之后特征便会缩减为 3、她的下一层设为softmax layer 作为分类标签的概率分布 4、特色在于设置了两种词向量,一种是在训练中 ...
分类:
其他好文 时间:
2017-05-09 21:40:24
阅读次数:
206
redisTemplate.execute(new RedisCallback() { public Long doInRedis(RedisConnection connection) throws DataAccessException { long result = 0; result = c ...
分类:
编程语言 时间:
2017-05-09 13:51:52
阅读次数:
222
Android 4.3 (API Level 18) introduces built-in platform support for Bluetooth Low Energy in the central role and provides APIs that apps can use to di ...
分类:
移动开发 时间:
2017-05-09 11:21:08
阅读次数:
599
上周Spark1.2刚公布,周末在家没事,把这个特性给了解一下,顺便分析下源代码,看一看这个特性是怎样设计及实现的。 /** Spark SQL源代码分析系列文章*/ (Ps: External DataSource使用篇地址:Spark SQL之External DataSource外部数据源(一 ...
分类:
数据库 时间:
2017-05-08 23:14:35
阅读次数:
919
1:首先创建一个django项目[root@localhostopt]#django-adminstartprojectopsCommandError:‘/opt/ops‘alreadyexists[root@localhostopt]#cdops[root@localhostops]#tree.├──manage.py└──ops├──__init__.py├──settings.py├──urls.py└──wsgi.py1directory,5fil..
分类:
其他好文 时间:
2017-05-08 18:37:34
阅读次数:
1006