摘要: 在echarts种,旧的数据不会默认清理,需要加merge属性 react-echart中清理旧数据的方法是noMerge={true} <ReactEcharts option={this.getOption()} notMerge={true} style={{ width: '400px',  阅读全文
posted @ 2020-07-30 15:15 会挽雕弓如满月的张 阅读(253) 评论(0) 推荐(0)
摘要: 1.直接在后面写一串数字也是可以的 return 12345 可以正常渲染 2. 其他情况下,需要一个tag进行包裹 阅读全文
posted @ 2020-07-02 11:16 会挽雕弓如满月的张 阅读(423) 评论(0) 推荐(0)
摘要: 父组件在render的时候(state改变的时候)无论子组件有没有更新,都会执行componentWillReceiveProps, 这个时候如果子组件用回调函数或者用redux或者mbox改变了父组件中的state,引起了父组件的render,那么子组件的componentWillReceiveP 阅读全文
posted @ 2020-06-30 14:42 会挽雕弓如满月的张 阅读(636) 评论(0) 推荐(0)
摘要: 先截取,再转浮点数 parseFloat((0.1+0.2).toPercision(4)) 截取4位,解析字符串转浮点数 阅读全文
posted @ 2020-06-29 13:40 会挽雕弓如满月的张 阅读(103) 评论(0) 推荐(0)
摘要: 在谷歌浏览器上,a标签的锚点会失效 谷歌浏览器为了用户体验,在网页刷新后会回到原来的位置。 导致定位用的锚点失效。 解决办法:在a标签中填入内容。将href=“#” 阅读全文
posted @ 2020-03-19 21:43 会挽雕弓如满月的张 阅读(604) 评论(0) 推荐(0)
摘要: compose 阅读全文
posted @ 2020-03-11 14:12 会挽雕弓如满月的张 阅读(204) 评论(0) 推荐(0)
摘要: combinreducer 阅读全文
posted @ 2020-03-11 12:42 会挽雕弓如满月的张 阅读(241) 评论(0) 推荐(0)
摘要: thunk也转成es5语法较好看 阅读全文
posted @ 2020-03-10 15:14 会挽雕弓如满月的张 阅读(124) 评论(0) 推荐(0)
摘要: 中间件的使用原理 阅读全文
posted @ 2020-03-10 14:10 会挽雕弓如满月的张 阅读(94) 评论(0) 推荐(0)
摘要: less总结 阅读全文
posted @ 2020-03-09 23:03 会挽雕弓如满月的张 阅读(222) 评论(0) 推荐(0)