-
* 0次或多次,+ 1 次或多次,?使用非贪婪算法即是出现0次或 1 次查看全部
-
\1 表示前面的字符串和 1 匹配到的字符串 / (abc)\1/.test("abcabc"); --> true; ?: 表示仅分组不匹配查看全部
-
\b 表示一个空格查看全部
-
. 表示任意字符查看全部
-
正则:提供一种模式表示检索或替换的规则查看全部
-
detect 方法查看全部
-
探测器的实现查看全部
-
模块化不暴漏变量和对象查看全部
-
defineProperty 来控制对象的属性查看全部
-
抽象类查看全部
-
调用基类的初始化方法 Person.call(this, name); 调用基类的方法使用 apply(this, arguments)查看全部
-
return this; 返回的是类的一个实例,实现了链式调用查看全部
-
实现重载,需要判断参数是否为对象 typeof args[0] === "object" && args[0]查看全部
-
实现继承的方式有三种,1. Student.prototype = Person.prototype;( 不推荐 ) 2. Student.prototype = new Person(); 这种方式如果构造器有参数就不好传参数;3. Student.prototype = Object.create(Person.prototype); Student.prototype.constructor = Student;-->为了不让Student.prototype的constructor不变为Person; 若不支持 Object.create() 则模拟一个方法 if( !Object.create ){}查看全部
-
bosn 的 __proto__ 指向Student.prototype,bosn 的 __proro__的__proto__ 指向Person.prototype查看全部
举报
0/150
提交
取消