Form提交表單后頁面刷新不跳轉的實現
在form表單下添加iframe標簽,設置隱藏,和name屬性。 form 添加target屬性,值為iframe的name。 ...
.提交form,action 提交數據,但頁面不跳轉,可以使用Iframe簡單方法 .注意 lt form action hello.php method post target id iframe gt lt from gt 中的target 一定是你要指定要顯示返回結果的 lt iframe id id iframe name id iframe style gt lt iframe gt ...
2016-03-24 14:39 0 7113 推薦指數:
在form表單下添加iframe標簽,設置隱藏,和name屬性。 form 添加target屬性,值為iframe的name。 ...
<div class="file-box"> <form action="/File/fileUpLoad" id="form1" name="form1" method="post" target="id_iframe"> <input type="text ...
...
方案一 方案二 ...
作者:幻月九十鏈接:https://www.zhihu.com/question/19631256/answer/119911045來源:知乎著作權歸作者所有,轉載請聯系作者獲得授權。 ...
方案一 方案二 ...
方法一:target <html> <body> <form action="" method="post" target="nm_iframe"> <input type="text" id="id_input_text" name ...