摘要: 居中面试的方法 一、带宽高的类型 <style> .father{ width: 500px; height: 500px; background-color: blue; position: relative; } .son{ position: absolute; width: 200px; h 阅读全文
posted @ 2021-03-31 22:45 啊方不方 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 一、常用的数组方法 sort:可以进行数组排序 var a=[1,2,5,4,6,3] console.log(a.sort()) //1,2,3,4,5,6 console.log(a.sort((a,b)=>b-a)) //6,5,4,3,2,1 Math.max:找最大值 var a=[1,2 阅读全文
posted @ 2021-03-31 21:52 啊方不方 阅读(84) 评论(0) 推荐(0) 编辑