jQuery性能优化 1.对于在jQuery中重复使用的标签,在第一次选择的时候就用一个变量把它保存起来。 2.在使用类名选择器时,加上父级选择器(父级选择器使用id或标签名) 3.使用find方法来选取后代 4.尽量使用jquery中的链式写法 5.使用事件委托 数据库 数据库(Database) ...
分类:
编程语言 时间:
2016-11-14 01:51:04
阅读次数:
159
17997 Simple Counting 时间限制:2000MS 内存限制:65535K提交次数:0 通过次数:0 题型: 编程题 语言: 不限定 Description 输入格式 The first line of the input is an integer T , indicates th ...
分类:
其他好文 时间:
2016-11-14 01:20:57
阅读次数:
185
有时候我们为了让局域网或外网用户直接远程访问或访问虚拟机里的服务,可以将实机端口直接映射到Hyper-V的虚拟机里面,省去很多麻烦。 下面是hyper-v共享IP端口映射一些常用命令共享IP端口映射一些常用命令一、查询端口映射情况netsh interface portproxy show v4to ...
分类:
其他好文 时间:
2016-11-13 22:30:44
阅读次数:
560
Minimum Transport Cost Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10183 Accepted Submission( ...
分类:
其他好文 时间:
2016-11-13 16:56:34
阅读次数:
181
#1.字符串:字符串操作的方法,都不会改变字符串的原值 字符串常用的方法:count,find,join,encode,decode,endswith,startswith,isdigit,strip,replace,split,splitlines print(names.count('mark' ...
分类:
其他好文 时间:
2016-11-13 16:47:58
阅读次数:
274
centos7 cannot find a valid baseurl for repo base 今天在虚拟机下安装centosmini版本,安装后第一件事就是yum update 但是有错:cannot find a valid baseurl for repo base base 百度了半天也 ...
分类:
Web程序 时间:
2016-11-13 16:16:04
阅读次数:
200
1.祖先:向上遍历DOM树 **parent():返回被选中元素的直接父元素,该方法只会向上一级对DOM树进行遍历 $(document).ready(function(){ $("span").parent(); }); **parents():返回被选元素的所有祖先元素,它一路向上直到文档的根元 ...
分类:
Web程序 时间:
2016-11-13 13:58:59
阅读次数:
176
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2016-11-13 07:49:37
阅读次数:
170