1 $("#em").bind({ 2 focus:function(){ 3 var val=$(this).val(); 4 if(val==""){ 5 ...
分类:
其他好文 时间:
2014-08-26 00:17:35
阅读次数:
271
ConcurrentHashMap的整个结构是一个Segment数组,每个数组由单独的一个锁组成,Segment继承了ReentrantLock。然后每个Segment中的结构又是类似于HashTable,也就是又是一个数组,数组的元素类型是HashEntry,每个形成一个桶。要找每个元素的时候,首...
分类:
编程语言 时间:
2014-08-26 00:17:15
阅读次数:
489
搬家了,本来还打算在博客园混一段时间的,可是当我看到Hexo的时候,已经难以抵挡它的诱惑,简单不简约的界面让我花了整整一天的时间,买域名的过程中发生一点小问题导致DNS解析错误了,但还是成功了。欢迎朋友过来交流,我也还会在博客园关注一些信息。新博客地址:www.liuchendi.com.Hexo是...
分类:
移动开发 时间:
2014-08-26 00:17:05
阅读次数:
400
hdu1011 和 hdu1561类似,给定每个节点的花费以及价值,并且子节点必须在父亲节点取到以后才可以被取到相当于是在树上进行的01背包dp时考虑每一个子树 root和它的每一个儿子,状态转移方程为dp[root][j]=max(dp[root][j],dp[root][j-k]+dp[ son...
分类:
其他好文 时间:
2014-08-26 00:16:55
阅读次数:
236
Available commands:ascii Set transfer mode to ASCIIbinary Set transfer mode to binarycd path ...
分类:
其他好文 时间:
2014-08-26 00:16:45
阅读次数:
504
Ajax的定义 Ajax不是一个技术,它实际上是几种技术,每种技术都有其独特这处,合在一起就成了一个功能强大的新技术。 Ajax包括: XHTML和CSS,使用文档对象模型(Document Object Model)作动态显示和交互,使用XML和XSLT做数据交互和操作,使用XMLHttpR...
分类:
其他好文 时间:
2014-08-26 00:16:35
阅读次数:
221
在VS中可以正常运行的代码,放到Eclipse中报undefined reference错误,解决办法,要在Android.mk中声明LOCAL_SRC_FILES := hellocpp/main.cpp \ ../../Classes/AppDelegate....
分类:
系统相关 时间:
2014-08-26 00:15:45
阅读次数:
242
openGLTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 170Accepted Submission(s): 77Problem Descrip...
分类:
其他好文 时间:
2014-08-26 00:15:36
阅读次数:
274
BFC(Block Formatting Context),简单讲,它是提供了一个独立布局的环境,每个BFC都遵守同一套布局规则。例如,在同一个BFC内,盒子会一个挨着一个的排,相邻盒子的间距是由margin决定且垂直方向的margin会重叠。而float和clear float也只对同一个BFC内...
分类:
Web程序 时间:
2014-08-26 00:15:15
阅读次数:
323
1 //[] 2 3 $(function () { 4 $("#send-btn" ).click(function (){ 5 //接受表单的值 6 var username=$('input[name=us...
分类:
其他好文 时间:
2014-08-26 00:15:05
阅读次数:
505
先上题目:321. The Spy NetworkTime limit per test: 0.5 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardThe network of spies consists o...
分类:
Web程序 时间:
2014-08-26 00:14:55
阅读次数:
315
14.34定义一个函数对象类,令其执行if-then-else的操作;该类型的调用运算符接受三个参数,它首先检查第一个形参,如果成功返回第二个参数的值;如果不成功返回第三个形参的值。#includeusing namespace std;class if_then_else{public: i...
分类:
其他好文 时间:
2014-08-26 00:14:45
阅读次数:
344
LeetCode: pascal's TriangleGiven numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return[ [1], [1,1], ...
分类:
其他好文 时间:
2014-08-26 00:14:35
阅读次数:
283
原题戳我Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You ha...
分类:
其他好文 时间:
2014-08-26 00:14:25
阅读次数:
334
原文出处:http://blog.csdn.net/a600423444/article/details/7206015在windows下动态链接库是以.dll后缀的文件,二在Linux中,是以.so作后缀的文件。动态链接库的好处就是节省内存空间。1、Linux下创建动态链接库在使用GCC编译程序时...
分类:
系统相关 时间:
2014-08-26 00:14:15
阅读次数:
457
js中apply方法的使用1、对象的继承,一般的做法是复制:Object.extendprototype.js的实现方式是:Object.extend = function(destination, source) { for (property in source) { destination[p...
分类:
移动开发 时间:
2014-08-26 00:14:05
阅读次数:
267