HTML input 控件

<input type="file" id="file1" onChange="test()">

function test(){
var file1 = document.getElementById('file1');
alert("0000");
}

打开一个1G大小的文件无延迟,

last Modified      最后修改      lastModified:1527836188121

last Modified Date  最后修改日期    lastModifiedDate:Fri Jun 01 2018 14:56:28 GMT+0800 (中国标准时间) {}

  1. name:"YLMF_Win7_SP1_X86_2017.part1.rar"       --文件名字
  2. size:1073741824                                              --文件大小
  3. type:""                                                                   -- 文件类型
  4. webkitRelativePath:""                                               --网络工具包相对路径                                            

猜你喜欢

转载自www.cnblogs.com/enych/p/9371027.html