SOURCE

console 命令行工具 X clear

                    
>
console
let file = document.getElementById('file');
file.onchange = function fileChange() {
  let formData = new FormData();
  let files = this.files;
  [].forEach.call(files, function (file) {
    formData.append('img_list[]', file);
  });
  // let xhr = new XMLHttpRequest();
  // xhr.open('POST', 'http://zifer.cn/users');
  // xhr.send(formData);
  $.ajax({
    url:'http:///actionsupport/upload/uploadFile',          //上传地址
    type: 'POST',
    cache: false,  
    data: formData,             //表单数据
    processData: false,
    contentType: false,
    success:function(data){}
  })

}
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>Document</title>
</head>
<body>
  <input type="file" id="file" multiple />
  <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
</body>
</html>