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 参数(输入文本)吗?这可能吗?
从提交输入中删除名称。
您可以将文本字段放在表单之外
或者
您可以Javascript在发送请求之前使用和删除该特定参数。
Javascript
该javascript方法将为您提供更大的灵活性。
javascript
最简单的方法是在提交表单时切换到 POST 方法。这样,参数不再由 Url 传递,而是在不可见的 HTTP 标头中传递。