jQuery - 重定向发布数据 [英] jQuery - Redirect with post data
本文介绍了jQuery - 重定向发布数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用发布数据重定向?
How can I redirect with post data?
如何使用 $ _ POST发布新页面
?
如何做到这一点?它是如何完成的,为什么要这么做
How to do this? How is it done and whyfore shall it be done
推荐答案
包含JQuery和jquery.redirect.min.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'});
在更新的JQuery版本中使用以下代码:
Use the following code on newer JQuery versions instead:
$.redirect('demo.php', {'arg1': 'value1', 'arg2': 'value2'});
希望这有助于您!
这篇关于jQuery - 重定向发布数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文