zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    进程与线程
    二维数组和指向指针的指针
    _variant_t 到 CString 转换
    1.15 构造数独
    单链表的一些操作
    C++关键字(2)——extern
    the seventh chapter
    Visual C++ 数据库开发的特点
    CString 和 LPCTSTR区别【转】
    2.5 寻找最大的K个数
  • 原文地址:https://www.cnblogs.com/peasana/p/11907076.html
Copyright © 2011-2022 走看看