方法名 | 属性 | 理解 |
---|---|---|
includes_包含 | str.includes(‘123’) | 含有123的值 |
split_分隔 | str.split(“,”) | 以逗号分隔为列表 |
push_添加 | list.push() | 在数组末尾添加一个或多个值 |
map_循环 | dict.list.map((a, index) => ( log(a) )) | 字典下的列表循环 |
columns_拼接 | render: (text) => ${text}¥ } | 在文本后面加上¥ |
formRef_增 | formRef?.current?.setFieldsValue({字段:值}) | 给这个字段添加一个值 |
formRef_查 | formRef?.current?.getFieldValue(“字段”) | 查找这个字段值 |
JSON转字符串 | JSON.stringify(dict) | JSON转字符串 |
fieldProps={{
maxLength:12,输入框最大输入长度12
precision:0,禁止输入小数点
}}