表单的疑惑
<div style="height:0px; overflow:hidden; width:0;">
<input type="file" id="a1" onchange="alert(this.value);document.getElementById('t1').value = this.value;" />
</div>
<input type="text" id="t1"/><input type="submit" onclick="document.getElementById('a1').click();" value="浏览2"/>
上面的这句onchange="alert(this.value);document.getElementById('t1').value = this.value;" 不是很理解,请大神解说一下,谢谢