<body>
<div class="box">
<form enctype="multipart/form-data" id="fm1">
<span class="s1">
<em></em>
<input type="file" name="file[]" multiple="multiple">
</span>
<input type="button" class="btn" value="上传">
</form>
<p id="result"></p>
</div>
<script>
var oFm = document.getElementById('fm1');
var oEm = document.getElementsByTagName('em')[0];
var oResult = document.getElementById('result');
var oBtn = document.getElementsByClassName('btn')[0];
oFm.file.onchange = function(){
oEm.innerHTML = this.value;
console.log( this );
};
大写的王