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.
当我编辑它的文本框时,我想禁用日历层的更改。目前,当我输入例如 2012-10-10 时,日历层会自动更新为 2012-10-1。我想阻止更改,直到用户点击“输入”。
最简单的解决方案是简单地禁用文本字段并只允许用户从日期选择器中选择日期。为了禁用该字段,您必须将disabled属性设置为true.
disabled
true