![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
J·M
这个作者很懒,什么都没留下…
展开
-
BOM中的open和close
实例解释html <ul> <li> hahah </li> </ul> <button>点我跳转</button> <button class="btn2">点我关闭</button>js var oul = document.querySelector("ul"); var btn = document.querySelector("button原创 2020-11-13 11:31:45 · 275 阅读 · 0 评论 -
JS的圣杯继承
组合寄生继承是现有的JS继承方法中最好的继承方式代码如下:function inherit(Target, Origin) { //传入两个构造函数 第二个是被继承的构造函数 function F() {}; //创建一个空的构造函数; F.prototype = Origin.prototype; //使这个中间构造函数的原型指向 父级构造函数的原型 Target.prototype = new F(); //将子级构造函数的原型指向这个中间构造函数 Target.proto原创 2020-11-13 10:17:38 · 151 阅读 · 0 评论 -
前端的一些不知道的属性收集,更新ing
HTML选择器伪类选择器基本使用序号选择器 :nth-child(N)首元素选择器 :first-child尾元素选择器 :last-childnot选择器 :not(s) ------> 除了这个选择其他的...原创 2020-10-18 18:11:24 · 74 阅读 · 0 评论