![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java常用代码
文章平均质量分 77
G潮流鸡涌
共同讨论编程相关问题~
展开
-
常用ajax_验证_提交_回调
scripttype="text/javascript">$(function(){$("#form1").validate({ rules:{ //键值对 "bairen.count":{ //key,value原创 2017-09-27 10:28:20 · 198 阅读 · 0 评论 -
validate表单验证
菜鸟教程(runoob.com)$.validator.setDefaults({ submitHandler: function() { alert("提交事件!"); }});$().ready(function(){// 在键盘按下并释放及提交后验证提交表单 $("#signupForm").validate({原创 2017-09-27 10:31:53 · 247 阅读 · 1 评论 -
字符串去重复
public List strRepeat(String str){Listresult =new ArrayList(Arrays.asList(str.split(",")));HashSeth = new HashSet(result); result.clear();result.addAll(h);System.err.println("内容:"+re原创 2017-09-27 10:22:32 · 199 阅读 · 0 评论 -
ajax常用代码
$("#form1").ajaxForm({url: "/product/planDoEdit",type: "post",dataType:'json',beforeSubmit:function(){$("button[name='sub']").attr("disabled",true).html("处理中...");},success: function(r原创 2017-09-26 11:15:15 · 334 阅读 · 1 评论 -
checkbox后台增删
// 检查要删数据还是增数据public void planClassInsert(intplanid, List str, Liststr2) {Collectionexists=new ArrayList(str);Collectionnotexists=new ArrayList(str);Collectionisexists=new ArrayList(原创 2017-09-29 14:44:41 · 237 阅读 · 0 评论