dugufck666

Results comments of dugufck666

p:nth-child(n),匹配所有p标签的父元素的第n个元素,并且这个元素是p标签,如果这个元素不是p标签,那么就不会匹配到 p:nth-of-type(n),匹配所有p标签的父元素的第n个p标签元素

普通函数和定时器,this是window 对象的方法中,this是对象本身 对象的普通属性中的this是全局变量window,在node中global 事件中,谁注册的事件,this就是那个对象

.heart { position: relative; width: 100px !important; height: 90px !important; } .heart { width: 200px !important; height: 200px !important; } important声明在后面的会覆盖前面的,谷歌浏览器中表现是这样

const getRandomString = (length) => { let s = '' Array.from({ length }).some(() => { s += Math.random().toString(36).slice(2) return s.length >= length }) return s.slice(0, length) } 不用递归的方式