juqery提交表单所有内容包括图片

<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>


$(".sendDate").click(function(){
      		var data = new FormData($('#uploadForm')[0]);
      		// var data = $('#uploadForm').serialize();
      		$.ajax({
                type: "POST",
                url:"/plus/zhaopin.php",
                data:data, 
                async: false,
                cache: false,
                contentType: false,
                processData: false,
                success: function(data) {
                     
                }
            });

  

posted @ 2018-01-31 09:52  Abner3721  阅读(159)  评论(0编辑  收藏  举报