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.
我正在开始网络开发。在发布表单时,所有输入字段都作为属性(Content-Disposition)发送。我想添加更多信息(我的意思是 POST 发送的更多属性),例如某个 html 标记的值,或者某个 div 的属性值。这可能吗 ?
解决这个问题的一个想法是使用“隐藏输入”(@html.HiddenFor)。这就是我要做的等待更好的解决方案。
您使用的是什么服务器端技术?您可能会使用 JavaScript 从表单中获取其他值然后提交,但这真的取决于。您可能想要更具体。