06 2020 档案
摘要:我们在做表单的时候经常会遇到一个场景需要数组对象格式的数据,例如我们填写公司成员信息,如下图: 我们需要的数据格式是数组对象,这时我们在getFieldDecorator要如何取名字呢? <Form.Item style={{ margin: 0 }}> {getFieldDecorator(`co
阅读全文
摘要:1.失去焦点时验证 <Col span={12}> <Form.Item label="账号" labelCol={{ span: 5 }} wrapperCol={{ span: 16 }} > {isAdd ? ( getFieldDecorator('bank_account', { rule
阅读全文
摘要:1.fetch是浏览器自带的,不需要安装或引用,可直接使用 fetch('/api/products') .then(response=>response.json()) .then(result=>{ ....//处理数据 })
阅读全文