4.如何使用js懒加载图片a.懒加载图片是基于jquery.js的,所以:b. 需要懒加载的图片,①.增加 data-original="图片真实地址"②.页面所有的img标签的src属性指向同一个图片(图片未加载时,显示的一张临时图)③.图片一定要设置 width 与 height //为什么?请...
分类:
Web程序 时间:
2015-06-13 18:36:01
阅读次数:
132
nvert a binary tree.
4
/ 2 7
/ \ / 1 3 6 9
to
4
/ 7 2
/ \ / 9 6 3 1
Trivia:
This problem was inspired by
this original tweet by
Max Howel...
分类:
其他好文 时间:
2015-06-13 15:44:12
阅读次数:
418
Invert a binary tree. 4
/ 2 7
/ \ / 1 3 6 9to 4
/ 7 2
/ \ / 9 6 3 1Trivia:
This problem was inspired by this original tweet by Max Howell:
Google:...
分类:
其他好文 时间:
2015-06-12 19:31:34
阅读次数:
224
DryingTime Limit: 2000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:310464-bit integer IO format:%lld Java class name:MainIt i...
分类:
其他好文 时间:
2015-06-12 19:24:44
阅读次数:
103
Spring2.5不支持JDK8及其以上的版本,因为有一段校验JDK版本的代码,当JDK版本大于1.7之后,会识别成JDK1.4之前的。会报版本太低的错误。 1 /* 2 * Copyright 2002-2007 the original author or authors. 3 * ...
分类:
编程语言 时间:
2015-06-12 00:36:15
阅读次数:
363
Original:http://blog.csdn.net/phunxm/article/details/50860801.通信协议的概念及其要素在OSI开放互联参考模型中,对等实体(peer)之间数据单元在发送方逐层封装(encapsulation),在接收方的逐层解析(decapsulation...
分类:
其他好文 时间:
2015-06-11 09:14:44
阅读次数:
118
ORIGINAL:未知Java断类的serialVersionUID来验证版本号一致性的。在进行反序列化时,JVM会把传来的字节流中的serialVersionUID与本地对应实体(类)的serialVersionUID进行比較,假设同样就觉得是一致的。能够进行反序列化,否则就会出现序列化版本号不一...
分类:
其他好文 时间:
2015-06-09 19:06:58
阅读次数:
87
1 #include 2 #include 3 using namespace std; 4 int main(){ 5 string original_city=" "; 6 string distance_city=" "; 7 int length; 8 ch...
分类:
其他好文 时间:
2015-06-09 16:31:17
阅读次数:
100
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only
distinct numbers from the original list.For example,
Given 1->2->3->3->4->4->5, return 1->2->5.
Given 1->1->1->2-...
分类:
其他好文 时间:
2015-06-08 17:16:19
阅读次数:
106
A brief summary of SVD:An original matrix Amn is represented as a muliplication of three matrices: Amn = UmmSmnVnnTThe columns of Uare the orthonorma....
分类:
其他好文 时间:
2015-06-08 14:41:27
阅读次数:
143