【发布时间】:2020-03-29 21:51:34
【问题描述】:
这是表单,我想在用户提交表单时获取姓名和年龄的值。
<form>
<input type='text' name='name'></input>
<input type='number' name='age'></input>
<input type='submit' />
</form>
【问题讨论】:
-
你读过 ReactJS 的文档吗?至少首页介绍?这涉及获取单个字段的值,然后您可以推断为两个。
标签: reactjs react-native react-redux