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.
如果我使用 GET 请求页面,那么我可以使用 window.location.search 从 javascript 访问任何查询参数。当页面是 POST 的结果时,是否有类似的方法来访问请求内容正文中而不是请求位置中的查询参数?
因为数据是在服务器端处理的,所以客户端(JS 所在的地方)无法访问这些变量。