全选和全不全都实现都比较简单$('input:checkbox').attr('checked','checked'); //全选$('input:checkbox').removeAttr('checked'); //全不选 反选分三步:1找到所有已选的checkbox,2将...
分类:
Web程序 时间:
2014-07-17 00:06:56
阅读次数:
313
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.下面是百度得到的关于罗马数的解释:我的代码: 1 class Solution { 2 ...
分类:
其他好文 时间:
2014-07-16 18:00:22
阅读次数:
214
以杭电2544题目为例
最短路
Problem Description
在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?
Input
输入包括多组数据。每组数据第一行是两个...
分类:
其他好文 时间:
2014-07-16 17:33:23
阅读次数:
240
题目如下:
Problem I
23 Out of 5
Input: standard input
Output: standardoutput
Time Limit: 1 second
Memory Limit: 32 MB
Your task is to writea program that can decide whether you can find an arithm...
分类:
其他好文 时间:
2014-07-16 17:16:32
阅读次数:
203
在InputReader从EventHub中获取输入事件,包含触摸屏事件、物理按键事件等,然后转交给InputDispatcher线程,InputDispatcher经过筛选,过滤输入事件,对于触摸事件通过调用findTouchedWindowTargetsLocked()函数找到合适的InputTarget,然后通过dispatchEventLocked()->prepareDispatchCy...
分类:
移动开发 时间:
2014-07-16 17:15:12
阅读次数:
370
1、获取单个checkbox选中项(三种写法)$("input:checkbox:checked").val()或者$("input:[type='checkbox']:checked").val();或者$("input:[name='ck']:checked").val();2、 获取多个che...
分类:
Web程序 时间:
2014-07-16 15:37:40
阅读次数:
266
C语言实验——一元二次方程ⅡTime Limit:1 SecMemory Limit:64 MBSubmit:169Solved:131[Submit][Status][Web Board]Description求一元二次方程ax2+bx+c=0的解。a,b,c为随意实数。Input输入数据有一行,...
分类:
编程语言 时间:
2014-07-16 13:59:33
阅读次数:
263
Description
Problem C
SAM I AM
Input: Standard Input
Output: Standard Output
The world is in great danger!! Mental's forces have returned to Earth to eradicate humankind. Our last hope to ...
分类:
其他好文 时间:
2014-07-16 10:15:05
阅读次数:
217
Number sequence
Given a number sequence which has N element(s), please calculate the number of different collocation for three number Ai, Aj, Ak, which satisfy that Ai Ak and i
Input
The fi...
分类:
其他好文 时间:
2014-07-16 09:51:23
阅读次数:
201
首先找到iptables文件
一般在 /etc/sysconfig下面
然后vi iptables
如同 添加一行-A INPUT ......即可打开端口
保存后输入
service iptables restart
重启下服务...
分类:
系统相关 时间:
2014-07-16 09:19:33
阅读次数:
242