方法是在file外层套一个span,重设span里的html值
代码如下:
var html=document.getElementById('uploadSpan').innerHTML;document.getElementById('uploadSpan').innerHTML=html;