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.
所以我想知道如何在输入中输入隐藏并输入提交?
<input type="submit" id = "submitid" type = "hidden">
有很多方法可以做到这一点:
1) 获取输入的 id 并使用display: none属性为其添加样式。
或者
2) 给输入设置隐藏类型,放入表单,通过纯Javascript提交。