【问题标题】:How to hide input in xml?如何隐藏xml中的输入?
【发布时间】:2022-01-03 22:06:18
【问题描述】:

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

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

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

谢谢。

【问题讨论】:

    标签: html css xml xml-parsing xmlhttprequest


    【解决方案1】:

    您所要做的就是添加隐藏属性。你犯的错误是添加 type="hidden" 而不是只添加 "hidden" 而不是 type

    &lt;input hidden type="text"/&gt;

    【讨论】:

    • 但是兄弟,不行吗?检查这个:j.top4top.io/p_2155tdcjm0.jpg
    • 代码:
    • 你不应该添加 required= "true",只需要就够了,隐藏也一样
    猜你喜欢
    • 2018-08-27
    • 2013-11-17
    • 1970-01-01
    • 2023-01-24
    • 2011-12-06
    • 2011-07-18
    • 1970-01-01
    • 1970-01-01
    • 2016-02-14
    相关资源
    最近更新 更多