mixins 调用方式: mixins: [mixin1, mixin2] 是对父组件的扩充,包括methods、components、directive等。。。 触发钩子函数时,先调用mixins的函数,再调用父组件的函数。 虽然也能在创建mixin时添加data、template属性,但当父组件 ...
分类:
其他好文 时间:
2017-10-29 19:34:30
阅读次数:
115
refer : https://docs.microsoft.com/en-us/aspnet/core/mvc/views/view-components core 和 Angular 的 component 是不同的. core 的 component 只是对 partial view 的升级而 ...
分类:
Web程序 时间:
2017-10-29 11:16:57
阅读次数:
175
题意:n个点,每个点有一个点权。两个点之间有边相连的充要条件是它们的点权不互素,问你这张图的连通块数。 从小到大枚举每个素数,然后枚举每个素数的倍数,只要这个素数的某个倍数存在,就用并查集在这些倍数之间都连上边。然后输出最后的集合数量即可。 注意,点权为1的点都会自成一个连通块。 ...
分类:
其他好文 时间:
2017-10-28 18:52:24
阅读次数:
135
常见的开发程序是并行构建用例图及用例图叙述与类图,然后才构建序列图及按图编码。 选中UML Components Approach 先搞一个系统出来 搞一个执行者出来 搞一个用例出来 建立单向联系 建立用例批注 添加批注 建立批注链接 至此,我们的用例图就算是完成了。 ...
分类:
其他好文 时间:
2017-10-28 18:49:26
阅读次数:
157
Connected Components Write a program which reads relations in a SNS (Social Network Service), and judges that given pairs of users are reachable each ...
分类:
其他好文 时间:
2017-10-25 23:35:15
阅读次数:
226
vue-resource更换为axiosnpm install axios/*main.js*/import axios from 'axios'Vue.prototype.$ajax = axios/*components*/import axios from 'axios' export def ...
分类:
移动开发 时间:
2017-10-24 01:41:57
阅读次数:
219
Flume 与 Kakfa结合例子(Kakfa 作为flume 的sink 输出到 Kafka topic) 进行准备工作: 编辑 flume的配置文件: $ cat /home/tester/flafka/spooldir_kafka.conf # Name the components on t ...
分类:
Web程序 时间:
2017-10-23 21:51:39
阅读次数:
611
import ExportWordLibraryPage from './ExportWordLibraryPage' ...
分类:
其他好文 时间:
2017-10-20 18:34:08
阅读次数:
143
先看两段代码: PureComponent VS Component Stateless components may also be referred to as Pure Components, or even Dumb Components, and are meant to represen ...
分类:
其他好文 时间:
2017-10-20 12:00:13
阅读次数:
138
Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle clie ...
分类:
数据库 时间:
2017-10-19 17:40:03
阅读次数:
428