zoukankan      html  css  js  c++  java
  • 上传文件大小

    <input type="file" class="form-control" id="avatar-upload" multiple accept=".perl,.sh,.bat,.py,.txt" name="publish" placeholder="请选择" autocomplete="off">
     
    function checkinfo (obj) {
    var len = obj.files.length;
     
    var text = "";
    for (var i = 0; i < len; i++) {
    text += "文件:" + obj.files[i].name + " ,大小:" + obj.files[i].size + "字节 ";
    }
    var fileSize = obj.files[i].size;
    console.log(text);
    },
  • 相关阅读:
    @atcoder
    @loj
    @AGC037
    @uoj
    @uoj
    @loj
    @loj
    @loj
    @loj
    @loj
  • 原文地址:https://www.cnblogs.com/htmlli/p/8949655.html
Copyright © 2011-2022 走看看