摘要:
居中面试的方法 一、带宽高的类型 <style> .father{ width: 500px; height: 500px; background-color: blue; position: relative; } .son{ position: absolute; width: 200px; h 阅读全文
摘要:
一、常用的数组方法 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 阅读全文