摘要:
function getMaxMin() { //js的apply语法 let asd = [1,2,3,4,5,6]; console.log(Math.max.apply(Array,[1,2,3,4,5,6])); //es6语法 let asd2 = [1,2,3,4,5,6]; conso 阅读全文
摘要:
function getLocalTime(nS) { return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' '); } console.log(getLocalTime(1636387199)); 阅读全文
摘要:
选择器案例权重值 !important !important Infinity 内联样式 style=".." 1000 ID #id 100 class .class 10 属性 [type='text'] 10 伪类 :hover 10 标签 p 1 伪元素 ::first-line 1 相邻选 阅读全文