from表单提交后不刷新页面--【ssnc】

<form id="form" action="${path}/app/save.json" method="post" target='frameFile1'>

1. 设置一个form表单提交的目标为frameFile1,

<iframe name='frameFile1' style='display: none;'></iframe>

2. 设置跳转目标为隐含域

//js刷新
$("#pdtname").attr("value","");
$("#nums").attr("value","");
$("#realname").attr("value","");

 3.js刷新当前表单

form表单提交完成后,就不会进行form刷新了。

原文地址:https://www.cnblogs.com/wangmei/p/5130172.html