我想制作页面来获取用户信息。
这是codesandbox.io页面。
https://codesandbox.io/s/material-demo-z1x3q?fontsize=14
当我在 성별* 文本字段中连续输入“d”时。
但我只能输入一次“d”。 如果我想输入更多内容,我必须单击 성별* 文本字段,然后输入“d”
你能帮我吗?
没有错误消息。只是不要连续写入。
最佳答案
将以下内容移至函数 Certify() 的主体内
const gender = useinput("");
const birthday = useinput("");
const phone = useinput("");
const certifys = [
{ key: "성별", state: gender },
{ key: "생일", state: birthday },
{ key: "번호", state: phone }
];
关于javascript - 为什么它不连续写入文本字段?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57345976/