【React】4.0 react中收集表单数据(非受控组件、受控组件)、高阶函数、函数的柯里化、不用函数柯里化的实现
1.0非受控组件hello_react//创建组件classLoginextendsReact.Component{handleSubmit=(event)=>{event.preventDefault()//阻止表单提交const{username,password}=thisalert(`你输入的用户名是:${username.value},你输入的密码是:${password.value}`