jQuery $ .post()-可以执行整页的发布请求吗? [英] Jquery $.post() - Possible to do a full page post request?

查看:87
本文介绍了jQuery $ .post()-可以执行整页的发布请求吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以使用jQuery和$.post()语法进行带外Post请求.但是,我很想知道jQuery是否有可能在整个页面上引发发布请求(如提交表单时),以便加载一个全新的页面.这可能吗?

I know I can do an out of band Post request with jQuery and the $.post() syntax. However, I'm interested to know if it is possible for jQuery to cause a post request on the whole page (as when a form is submitted) so that a brand new page is loaded. Is this possible?

DOM中没有表单元素,因此我无法执行form.submit().

There is no form element in the DOM, so I can't do form.submit().

推荐答案

认为此插件应该可以解决问题:

Think this plugin should do the trick: http://www.mimiz.fr/javascript/jquery/en-jquery-postdatas-plugin/?lang=en

这篇关于jQuery $ .post()-可以执行整页的发布请求吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆