如何使用POST数据重定向?

How to move to new page with $_POST?

How to do this? How is it done and whyfore shall it be done

推荐答案

有一个JQuery插件,它几乎完成了您想要做的事情:https://github.com/mgalante/jquery.redirect/blob/master/jquery.redirect.js.

After including JQuery and the jquery.redirect.min.js plug-in, you can simply do something like this:

$().redirect('demo.php', {'arg1': 'value1', 'arg2': 'value2'});

Use the following code on newer JQuery versions instead:

$.redirect('demo.php', {'arg1': 'value1', 'arg2': 'value2'});

希望这能有所帮助!

Jquery相关问答推荐

使用动态类名的gm_addStyle?

点击和touch 事件之间的jQuery冲突解决方法

哪个 JQuery Select 器会排除与给定 Select 器匹配的父项的项目?

jQuery - 向下滚动时缩小的粘性标题

如何使用 jQuery 的 getJSON() 方法传递请求标头?

获取单选按钮组的值

Google Maps API v3 infowindow 关闭事件/回调?

ASP.Net 母版页和文件路径问题

调整浏览器大小时调整jqGrid的大小?

jQuery getJSON 将结果保存到变量中

Bootstrap 3.0 弹出框和工具提示

在 jquery 中启用/禁用下拉框

jQuery.extend 和 jQuery.fn.extend 的区别?

使用 jquery 通过文本设置下拉值

Underscore.js 和 jQuery 互补吗?

订单对象是否由指定的 jQuery Select 器返回?

如何使用jQuery触发类更改事件?

超时 jQuery 效果

如何使锚链接不可点击或禁用?

使用 Ajax 下载并打开 PDF 文件