如何使用javascript读取发布请求参数 [英] How to read the post request parameters using javascript

查看:73
本文介绍了如何使用javascript读取发布请求参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从我的html中读取发布请求参数。我可以在javascript中使用以下代码读取获取请求参数。

I am trying to read the post request parameters from my html. I can read the get request parameters using the following code in javascript.

$wnd.location.search

但它不适用于发布请求。任何人都可以告诉我如何使用javascript在我的html中读取发布请求参数值。

But it does not work for post request.Can anyone tell me how to read the post request parameter values in my html using javascript.

推荐答案

POST数据是服务器端处理的数据。而且Javascript在客户端。因此,您无法使用JavaScript阅读发布的数据。

POST data is data that is handled server side. And Javascript is on client side. So there is no way you can read a post data using JavaScript.

这篇关于如何使用javascript读取发布请求参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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