Java SpringBoot React Redux

1、字符串转换相关 - React 前端JS部分

JSON.parse(JSON.stringify(copyRow));

2、字符串分隔相关,弹出confirm确认框,显示换行信息 - React 前端JS部分

let tip = [];
if(res.Message != null && res.Message != undefined){
tip =res.Message.split("&");
}
confirm({
okText: '确定',
cancelText:'取消',
content:(<div>
{
tip.map((val,index)=>{
return <p style={{height:10}}>{val}</p>;
})
}
</div>),
onOk() {
doPost(para,btntype,dispatch);
},
onCancel() {},
});

3、React 前端Table控件 选择事件

<Table>
        <rowSelection> = {{
            getCheckboxProps: record => ({
                disabled: 表达式,
                checked: (this.props.selectedRowKeys.indexOf(record.id)>-1?true:false),
                })
            }}
    </Table>

4、日期字段序列化时候出现的异常

org.springframework.dao.TransientDataAccessResourceException: 
Error attempting to get column 'pay_month' from result set.  
Cause: java.sql.SQLException: 
Zero date value prohibited; 
Zero date value prohibited; 
nested exception is java.sql.SQLException: Zero date value prohibited

5、redux调试工具redux-devtools

原文地址:https://www.cnblogs.com/peasana/p/11907076.html