📜  只读 vs 禁用 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:31.650000             🧑  作者: Mango

代码示例1
- Readonly element is just not editable, but gets sent when the according form submits.
- Readonly elements can be focused (and getting focused when "tabbing" through a form).

- Disabled element isn't editable and isn't sent on submit.
- Disabled elements can't be focused (and getting focused when "tabbing" through a form).