<input type="file" style="width:0px;border:0px;" onpropertychange="document.formxx.submit();">
function chkloginfrm()
{
        var form = document.formxx;
        form.submit();
}
<input type="file" name="file" style="display:none" onChange="chkloginfrm();">
<input type="button" value="上传文件" onClick="file.click();">
2种方法都试了。
第一种可以提交,但是后台无法获取到值。第二种不能提交,js报错:对象不支持此属性或方法。请指点