# 水平排列的表单 - order: 0 示例展示了如何通过使用 `Form.ValueMixin` 来获取和更新表单提交的数值。 **注意:** 你需要为每个输入控件声明 `name` 属性。 --- ````jsx var Form = antd.Form; var Button = antd.Button; var Checkbox = antd.Checkbox; var Radio = antd.Radio; var RadioGroup = antd.Radio.Group; var Button = antd.Button; var Demo = React.createClass({ mixins: [Form.ValueMixin], getInitialState() { return { formData: { userName: '大眼萌 minion', password: undefined, gender: 'male', remark: undefined, agreement: undefined, } }; }, handleSubmit(e) { e.preventDefault(); console.log(this.state.formData); }, render() { var formData = this.state.formData; return (