摘要:
##Math 1.Math.abs() 获取绝对值; 2.Math.round() 四舍五入; 3.Math.random() 0~1随机小数; 4.Math.ceil() Math.floor() 向上取整和向下取整; 5.Math.max() Math.min() 最大最小值; 6.Math.P 阅读全文
posted @ 2020-12-23 14:46
helloSWZ
阅读(145)
评论(0)
推荐(0)
摘要:
###js数组基本方法 1.join() 数组转换成字符串,参数为连接符,默认, 2.push() pop() 数组末尾添加删除 3.unshift() shift() 数组开始添加删除 4.sort() 从小到大排序 5.reverse() 反转数组顺序 6.concat() 参数添加到原数组,返 阅读全文
posted @ 2020-12-23 14:21
helloSWZ
阅读(132)
评论(0)
推荐(0)
摘要:
##React性能优化 ###性能优化的重点 1.setState之后,组件进行渲染,无论state是否改变; 2.父组件渲染后,子组件跟着渲染; ###hooks之前 class组件 1.class *** extends React.PureComponent 对props进行一次浅比较。局限性 阅读全文
posted @ 2020-12-23 09:55
helloSWZ
阅读(121)
评论(0)
推荐(0)

浙公网安备 33010602011771号