jquery validation 在触发按钮单击事件进行表单校验和验证通过后发起ajax请求的解决方案
//声明一个函数functionvalidform(){return$("#form-article-add").validate({rules:{title:{required:true,minlength:5,maxlength:50},sellpoint:{required:true,maxlength:200},category:{required:true}},messages:{tit