Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从 POST 方法中检索值。我知道可以从查询字符串中检索 GET 方法值。那么 POST 方法怎么可能呢?
谢谢, 普拉文贾亚帕尔
根据您使用的标签,我假设您想使用 javascript 访问 POST 数据。
如果是这样,这是不可能的,因为发布的数据是发布到服务器而不是客户端..并且服务器返回一个没有这些的页面..
如果您使用像 php/asp/ruby/etc..etc.. 之类的服务器端语言(不要因为选择而激怒我..),那么您可以找到创造性的方法将数据返回给客户端并从 javascript 访问。 .