主要思路通过自定义指令,在视图初始化完成后,绑定scroll事件。当scrollTop + clientHeight = scrollHeight时(此时滚定条到了底部)触发loadMore事件, 附上一个css loading动画 , Loading.vue: 加载效果图: ...
分类:
其他好文 时间:
2017-12-06 11:27:10
阅读次数:
1960
标签:扩展卢卡斯+方案数推导。题解: 首先要想到使用组合数而不是DP,否则就会深陷泥潭而不可自拔了。 我们把两个序列拼起来,也就是a+b个位置,每一个位置都是0或1。自然有2^(a+b)种方案。我们分a==b和a>b两种情况来讨论(我也不知道怎么想到这两种情况是不一样的): a==b:首先a的赢和输 ...
分类:
其他好文 时间:
2017-12-05 14:28:13
阅读次数:
213
在chrome开发者工具中观察函数调用栈、作用域链与闭包 在chrome的开发者工具中,通过断点调试,我们能够非常方便的一步一步的观察JavaScript的执行过程,直观感知函数调用栈,作用域链,变量对象,闭包,this等关键信息的变化。因此,断点调试对于快速定位代码错误,快速了解代码的执行过程有着 ...
分类:
其他好文 时间:
2017-12-04 13:20:51
阅读次数:
195
1.密码有效期 2.密码复杂度 3.测试 如果出现下面模块不支持的情况 请换种 模块支持( 上面使用了/lib/security/$ISA/pam_passwdqc.so 模块) ...
分类:
其他好文 时间:
2017-12-04 10:22:23
阅读次数:
208
.tuiguang img{width:100%;} .tuiguang img:nth-child(1){position:relative;top:0;} .tuiguang img:nth-child(2){position:relative;left:100%;} .tuiguang img ...
分类:
其他好文 时间:
2017-12-03 19:05:28
阅读次数:
148
A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Wri ...
分类:
其他好文 时间:
2017-12-03 18:58:56
阅读次数:
186
title: HDU - 1513 A palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are t ...
分类:
其他好文 时间:
2017-12-03 18:54:40
阅读次数:
155
Line: 1772 Expression: _p != nullptr typedef 与 #define区别中的理解? CoreJavaVolumeI读书笔记--第4章对象与类 Http协议之Get和Post的区别 6ao级繁举http://p.baidu.com/pai/center?uid= ...
分类:
系统相关 时间:
2017-12-03 11:45:20
阅读次数:
316
每次移动3个pointer 里面最小的那个就好了。记录整个过程找最近的3个数。3个数之中median没意义,距离主要由最小和最大决定。基本就是这个思路。很快编完就过了编程阶段。 ...
分类:
其他好文 时间:
2017-12-03 11:20:23
阅读次数:
109
## tf.Variable(??) 创建tf变量 ## tf.matmul(w,x) 矩阵乘法 ## tf.zeros(shape, dtype) 创建全零阵 ## tf.zeros_like(tensor) 创建矩阵tensor同维的全零阵 ## tf.ones(shape,dtype) 创建全 ...
分类:
其他好文 时间:
2017-12-03 00:39:18
阅读次数:
3238