• js 原生图片批量上传 multiple="multiple"


    https://www.cnblogs.com/jzxy/articles/15556998.html

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <input id="fileuploadBatch1" type="file" name="batchImg" multiple="multiple" onchange="multipleUploadImg(this)">
        批量上传
    </body>
    
    </html>
    
    <script>
        //选择图片,马上预览
        function multipleUploadImg(obj) {
            var fl = obj.files.length;
            console.log("obj", obj, obj.files);
            for (var i = 0; i < fl; i++) {
                var file = obj.files[i];
                console.log(file)
                var formData = new FormData();
                formData.append('imgFile', file);
            }
        }
    </script>
    

      

  • 相关阅读:
    mysql性能优化
    pymysql模块
    mysql数据表约束
    MySQL数据库
    IO模型
    8451
    8946531
    6783
    256213
    27822
  • 原文地址:https://www.cnblogs.com/rsapaper/p/16296413.html
Copyright © 2020-2023  润新知