form不刷新页面的简单实现

直接给代码就是

 <iframe name="hidden" style="display:none;"></iframe>


 <form action="http://127.0.0.1:3000/bbb" method="post" enctype="multipart/form-data"  target="hidden">
            <input style="display: none" id="true_click" type="file" accept="image/*">
            <input class="animated bounceInDown" type="text" id="name" placeholder="请输入姓名">
            <input type="text" id="pox" name="pox">
            <input type="text" id="poy" name="poy">
            <input type="submit" value="提交">
 </form>

跟锚点类似让在本页面的iframe内刷新iframe不显示

发布了71 篇原创文章 · 获赞 21 · 访问量 3653

猜你喜欢

转载自blog.csdn.net/qq_26386437/article/details/104545813
今日推荐