passer1991

2013年10月17日

限制文本框,文本域输入的字符数量

摘要: function limitCharsNum(charsNumSpanId,id,max){ setTimeout(function(){ var valLen=$("#"+id).val().length; console.log(max); if(valLen>max) { console.log(valLen); $("#"+id).val($("#"+id).val().substring(0,max)); } $("#"+charsNumSpanId).text((ma... 阅读全文

posted @ 2013-10-17 17:44 passer1991 阅读(368) 评论(0) 推荐(0) 编辑

删除数据库中多余的重复记录(在mysql的数据库上测试过,成功删除)

摘要: delete a from student a,(select xm,xh,max(UUID) UUID,count(*) mid from student group by xm,xh having count(*)>1) b where a.xm=b.xm and a.UUID!=b.UUID 阅读全文

posted @ 2013-10-17 11:44 passer1991 阅读(133) 评论(0) 推荐(0) 编辑

导航