使用history.back()时如何清除以前的表单输入和wealalert?

时间:2018-06-23 09:51:11

标签: browser-history sweetalert history.js

我们想在应用程序中向用户提供返回按钮,该按钮已使用javascript中的window.history.back()完成,但是当用户填写表单时,将显示Sweetalert并在确认操作时将用户从重定向到页面2页面1。现在,当他在应用程序中单击“后退”按钮时,历史记录将显示sweetalert以及上次访问时在页面1上的已填充输入。

使用window.history.back();时如何清除所有字段并关闭swal?

0 个答案:

没有答案