摘要: antd表格中column 获取数据里面子对象的数据时要用数组获取 例如 如下json数据 [{ a: '123', b: { c: '456' } }] 获取c的数据,不能在column的dataIndex属性里面直接写 'b.c' 这种方式获取, 要用['b','c']这种方式。 搜了半天搜不到 阅读全文
posted @ 2022-01-20 10:37 秋离 阅读(1284) 评论(0) 推荐(0)
摘要: 旋转为笛卡尔坐标系代码来自https://www.cnblogs.com/heyang78/p/7591175.html ctx.save(); ctx.translate(0,height); //height 为画布高度 ctx.rotate(getRad(180)); ctx.scale(-1 阅读全文
posted @ 2020-07-22 11:36 秋离 阅读(576) 评论(4) 推荐(1)