![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JQUERY
qinyuanyuan123
这个作者很懒,什么都没留下…
展开
-
显示表格的title时,如果title太长,则表示成...
$(document).ready(function(){ var maxwidth=4; var th=$("thead").children().children(); $.each(th,function(){ if($(this).text().length>maxwidth){ var len=$(this).text().substring(0,maxwidth);原创 2015-04-16 12:48:25 · 506 阅读 · 0 评论 -
JSP中一些简单的验证
验证为整数: function validateQty(){ var msg = "QTY必须是整数 "; var isinteger=/^[0-9]*[1-9][0-9]*$/; if(!isinteger.test($("#qty").val())){ return msg; }else{ return ""; } } 验证邮箱格式以及是否存在:原创 2015-05-04 10:45:26 · 292 阅读 · 0 评论 -
jquery中的小例子 持续更新中
$("select#year").val(${years[2]}); 始终选择页面上years这个数组中的第三个元素原创 2015-04-30 10:56:36 · 325 阅读 · 0 评论