1、在页面中载入新页面:location.assgin(""); location.replace();后者会删除以前的页面记录location.reload();//重新载入当前页面location="#middle";//滚动到文档的相应位置2、window的history history.b....
inplace_merge原型:
std::inplace_merge
default (1)
template
void inplace_merge (BidirectionalIterator first, BidirectionalIterator middle,
BidirectionalIterato...
分类:
其他好文 时间:
2014-09-16 16:02:20
阅读次数:
170
Sort a linked list inO(nlogn) time using constant space complexity.归并排序的基本思想是:找到链表的middle节点,然后递归对前半部分和后半部分分别进行归并排序,最后对两个以排好序的链表进行Merge。/** * Definitio...
分类:
其他好文 时间:
2014-09-13 13:15:45
阅读次数:
155
1:单行文字垂直居中: 如果一个容器中只有一行文字的话,定义height(高度)和 line-height(行高)相等即可。 如:aa2:多行文本固定高度垂直居中:核心:display:table 和display:table-cell ;vertical-align:middle;兼容:ie7+....
分类:
Web程序 时间:
2014-09-12 21:55:34
阅读次数:
250
清除图片下方出现几像素的空白间隙方法1:img{display:block;}方法2:img{vertical-align:top;}除了top值,还可以设置为text-top | middle | bottom | text-bottom,甚至特定的和值都可以方法3:#test{font-size...
分类:
Web程序 时间:
2014-09-12 08:51:13
阅读次数:
297
FroggerTime Limit:1000MSMemory Limit:65536KTotal Submissions:26226Accepted:8538DescriptionFreddy Frog is sitting on a stone in the middle of a lake. S...
分类:
其他好文 时间:
2014-09-11 17:04:32
阅读次数:
228
浏览着代码,看源码可以先看make文件,make文件有制造的流程信息。一般可以从运行的程序对应的cpp看起。然而如果有框架,那就不容易了,会关系错纵复杂。总结一下我折腾过的源码阅读器。source-insight组里都是用source-insight,可是在linux平台没有,我不喜欢linux下没...
分类:
其他好文 时间:
2014-09-05 12:48:41
阅读次数:
190
MedianTime Limit: 5 Seconds Memory Limit: 65536 KBThe median of m numbers is after sorting them in order, the middle one number of them if m is even o...
分类:
其他好文 时间:
2014-09-04 16:49:29
阅读次数:
190
1.单行内容的居中.middle-demo-1{height: 4em;line-height: 4em;overflow: hidden;}2.父元素未设置高度,内容居中.middle-demo-2{padding-top: 24px;padding-bottom: 24px;}3.子元素有固定高...
分类:
其他好文 时间:
2014-09-02 21:15:05
阅读次数:
180
1.TextView显示的内容过长时自己主动显示省略号:省略号的位置:android:ellipsize="end" 省略号在结尾android:ellipsize="start" 省略号在开头android:ellipsize="middle" 省略号在中间TextView显示的行数:...
分类:
其他好文 时间:
2014-09-02 19:47:15
阅读次数:
204