Onchange对我在React中的输入不起作用
我对这些输入有2个输入,我有一个on Changes。通常,我与ES6课程一起使用构造室,但是这次我必须使用功能组件,只是不知道我做错了什么。每次我在输入中键入某些内容时,都会说输入的值仍然为空(如果我想读出)。
I have 2 Inputs on these Inputs I have onChanges. Normally I work with ES6 Classes with a Constructur, but this time I have to work with functional components, and just don't know what I have made wrong. Everytime I type something in the inputs, it says the value of the input is still empty (if I want to read it out).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在
e.target.value
中获取键入的值,而不仅仅是e.value
you need to get the value typed in
e.target.value
and not juste.value