摘要: function diag(){ //str1:标题 //str2:输入框隐藏文本 var str=prompt(str1,str2); if(str) { alert("您刚输入的是:"+ str) }};//如果用户单击提示框的取消按钮,则返回 nul... 阅读全文
posted @ 2015-12-31 17:00 aladin灯神 阅读(512) 评论(0) 推荐(0) 编辑
摘要: $("input[id^=ck]").each(function(index,e){ if($(e).is(":checked")) { userArray.push($(e).attr("value")); ... 阅读全文
posted @ 2015-12-31 16:59 aladin灯神 阅读(223) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function(){ var url = 'http://chaxun.1616.net/s.php?type=ip&output=json&callback=?&_='+Math.random(); $.getJ... 阅读全文
posted @ 2015-12-06 09:50 aladin灯神 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-11-25 21:45 aladin灯神 阅读(17116) 评论(0) 推荐(0) 编辑
摘要: Calendar calendar = Calendar.getInstance();calendar.setTime(date);calendar.add(Calendar.MONTH, 1);//增加一个月System.out.println("增加月份后的日期:"+calendar.getTi... 阅读全文
posted @ 2015-11-25 14:13 aladin灯神 阅读(9553) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-11-24 22:07 aladin灯神 阅读(745) 评论(0) 推荐(0) 编辑
摘要: delete from information where id in (select id from (select max(id) as id,count(*) as ccc from information GROUP BY encoding HAVING ccc>1 ) as tab) 阅读全文
posted @ 2015-11-16 16:11 aladin灯神 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1.IFNULL(xxx,'') 如果为空,返回''2.SUBSTR(xxx FROM 1 FOR 18) 取字符串1到18位3.DATE_FORMAT(xxx,'%Y-%m-%d %T') 对日期进行格式化4.CONCAT(xxx,' 00:00:00') 如果是NULL... 阅读全文
posted @ 2015-11-12 15:04 aladin灯神 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 首先效果如下:代码如下://这个是一个循环,循环所有name为xx的td标签(也就是给tdname为XXX的添加事件)$("td[name='strGoodsSKU']").each(function(index,item){ var oldTest = $(this)... 阅读全文
posted @ 2015-11-12 11:44 aladin灯神 阅读(1305) 评论(0) 推荐(0) 编辑
摘要: 限制文本框只能输入正数,负数,小数onkeyup="value=value.replace(/[^\-?\d.]/g,'')" 限制文本框只能输入正数,小数onkeyup="value=value.replace(/[^\d.]/g,'')" 阅读全文
posted @ 2015-11-11 16:38 aladin灯神 阅读(1098) 评论(0) 推荐(0) 编辑