rachelcdev

Results comments of rachelcdev

伪元素介绍:https://developer.mozilla.org/zh-CN/docs/Web/CSS/pseudo-elements note: W3C规范中,伪元素用双冒号用于与伪类(但冒号)区别 only works on elements that have a (document tree) content. `input` has no content, as well as `img` or `br` 只在有content的元素中可以引用伪元素。 如input,img,br 无法添加内容的标签就没有办法引用伪元素 https://stackoverflow.com/questions/3538506/which-elements-support-the-before-and-after-pseudo-elements

楼上说的递归 const deepClone = obj => { let cloneObj = {}; for (let key in obj) { if (typeof obj[key] === "object" && typeof obj[key] !== "null") { cloneObj[key] =...

an example: https://github.com/wesbos/JavaScript30/tree/master/24%20-%20Sticky%20Nav

如果浏览器不支持js,noscript会帮助我们显示一些信息 https://stackoverflow.com/questions/2170484/shouldnt-we-use-noscript-element