React获取文本框的值

一、通过event对象信息的方式

 二、使用ref

使用ref自定义一个属性,可以通过this.refs.属性名称.value获取内容

原文地址:https://www.cnblogs.com/home-/p/11811611.html