日期:2014-05-16  浏览次数:20405 次

对ajaxsubmit不懂不知道该怎么解决的说
 $().ready(function() {  
           $("#uploadimg-form").validate({  
               rules: {  
                    fileUpload: {  
                        required: true,  
                        accept: "xls"  
                   }  
              },  
               messages:{  
                   fileUpload: {  
                       required: "请选择上传文件",  
                       accept: "文件格式不支持,请上传 xls 格式的文件"  
                   }  
               },  
              submitHandler: function() {  
                 $("#uploadimg-form").resetForm().ajaxSubmit({  
                      url:"",  
                       type:"post",  
                       enctype:"multipart/form-data",  
                     contentType: "application/x-www-form-urlencoded; charset=utf-8",  
                       dataType:"json",  
                      success: function(data){  
                            var str = "";  
                           for (var i=0, len=data.length; i < len; i++) {  
                        &