如何在xml中隐藏输入?

How to hide input in xml?

提问人:Kabar Kabari 提问时间:11/26/2021 更新时间:11/26/2021 访问量:787

问:

我很困惑,如果html中的代码是这样的:

<input type="hidden" value="123">

那么 xml 中的代码怎么样呢? 我只是在学习 xml,但我被困在这个元素中,如果在 html 中它有 type=“hidden” 和 value=“123”,那么 xml 有什么?如何在xml中使用type=“hidden”和value=“123”?

谢谢。

html css xml xml-解析 xmlhttprequest

评论


答:

0赞 Web Developer 11/26/2021 #1

您所要做的就是添加隐藏属性。你犯的错误是添加 type=“hidden”,而不是只添加没有类型的“hidden”

<input hidden type="text"/>

评论

0赞 Kabar Kabari 11/26/2021
但是兄弟,不工作吗?检查一下: j.top4top.io/p_2155tdcjm0.jpg
0赞 Kabar Kabari 11/26/2021
代码:<input class='form-control' id='inputMsg' name='message' required='true' type='text' v-model='target.msg'/>
0赞 Web Developer 11/26/2021
<input class='form-control' id='inputMsg' name='message' required type='text' v-model='target.msg'/>你不应该添加 required=“true”,只需要 required 就足够了,隐藏也一样