-
函数声明和函数表达式查看全部
-
探测器(练习)查看全部
-
函数的调用方式查看全部
-
模块化(函数内的变量不会泄露到外部)查看全部
-
通过defineProperty,seal来控制属性读写枚举属性查看全部
-
return this其中的this指向ClassManager的实例。 通过return this实现链式调用。查看全部
-
Person.call调用基类的构造器。 Person.prototype.init.apply调用基类的方法。查看全部
-
typeof args[0]==='object'&&args[0],加上args[0]为了防止为null时造成错误 右侧方法重新定义toString方法查看全部
-
类型检测小结查看全部
-
函数如果作为对象的属性被调用,函数中的this只想当前对象; 函数独立调用,函数中的this指向 window; 叶丽???查看全部
-
特殊运算符查看全部
-
Student.prototype = Person.prototype;//会导致Student上修改属性会影响到Person Student.prototype = new Person;//Person没有实例化,会导致this混乱的一些问题,student的prototype可能会有person的一些属性。 Student.prototype = Object.create(Person.prototype);// 右侧的方法模仿Object.create方法(如果浏览器不支持create方法)查看全部
-
运算符查看全部
-
bosn的原型的原型为person查看全部
-
对象 instanceof 函数查看全部
举报
0/150
提交
取消