一、通过event对象信息的方式
二、使用ref
使用ref自定义一个属性,可以通过this.refs.属性名称.value获取内容
React获取文本框的值
原文:https://www.cnblogs.com/home-/p/11811611.html