form表单提交时,action="url" method="get/post"
当ajax提交表单时,原本的ajax post提交 success后 不能执行window.location.href="url" 或windows.location.reload();
原因是 form的method 必须为post 才能reload到post页面。
探讨了在使用form表单提交数据时,如何正确设置method属性以实现页面的重载,特别是在使用ajax进行post提交后的成功响应处理。
form表单提交时,action="url" method="get/post"
当ajax提交表单时,原本的ajax post提交 success后 不能执行window.location.href="url" 或windows.location.reload();
原因是 form的method 必须为post 才能reload到post页面。
转载于:https://www.cnblogs.com/lansefengmeng/p/5283119.html
9171
3738

被折叠的 条评论
为什么被折叠?