var inputid="";
var inputArray=$("input[type='text']");//取到所有的input text 并且放到一个数组中
inputArray.each(//使用数组的循环函数 循环这个input数组
function (){
var input =$(this);//循环中的每一个input元素...
分类:
Web程序 时间:
2014-10-10 11:23:34
阅读次数:
218
jquery代码:省略引用jquery代码。<scripttype="text/javascript">//全选$(function(){$("#selectAll").click(function(){if(this.checked){$("#chapterlist:checkbox").each(function(){this.checked=true;});$("#selectAll").attr("value","反选");}else{$("#chapterli..
分类:
Web程序 时间:
2014-10-10 02:27:54
阅读次数:
172
创建定时任务: 1 root@xxj-VirtualBox:~# crontab -l 2 # Edit this file to introduce tasks to be run by cron. 3 # 4 # Each task to run has to be defined throu....
分类:
其他好文 时间:
2014-10-10 02:26:23
阅读次数:
174
The real problem with concurrency occurs when tasks that are executing in parallel begin to interface with each other. This can happen in such a subtl...
分类:
其他好文 时间:
2014-10-10 01:52:23
阅读次数:
167
Problem:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a...
分类:
其他好文 时间:
2014-10-10 01:32:53
阅读次数:
213
Problem DescriptionThere are 2 special dices on the table. On each face of the dice, a distinct number was written. Consider a1.a2,a3,a4,a5,a6 to be n...
分类:
其他好文 时间:
2014-10-10 00:22:52
阅读次数:
482
DELIMITER $ #定义$为结束符TRUNCATE gt_hotel$ #清空table oCREATE TRIGGER tr_aft_insert_hotelAFTER INSERT ON gt_hotelFOR EACH ROWBEGININSERT INTO gt_template(so...
分类:
数据库 时间:
2014-10-09 20:44:57
阅读次数:
165
Description
There is a straight highway with N storages alongside it labeled by 1,2,3,...,N. Bob asks you to paint all storages with two colors: red and blue. Each storage will be painted with exac...
分类:
其他好文 时间:
2014-10-09 17:15:48
阅读次数:
193
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:
其他好文 时间:
2014-10-09 17:15:15
阅读次数:
218
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine i...
分类:
其他好文 时间:
2014-10-09 16:59:57
阅读次数:
203