form表单提交页面不发生跳转

<form id="registSubmit" enctype="multipart/form-data" action="/dataTable/uploading" method="post" target="form_iframe" onclick="saveReport()">
上传文件:<input type="file" id="file" name="file1"/>
<input type="submit" id="id_submit" name="id_submit" value="上传"/>
</form>


<iframe id="form_iframe" name="form_iframe" style="display:none;"></iframe>
posted @ 2019-11-07 18:19  徽徽  阅读(1424)  评论(0编辑  收藏  举报