Skip to content

Commit 12936b1

Browse files
修改了3处语法错误
1 parent 2fd8cd8 commit 12936b1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

2 常用操作/02-String.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
* 【replace(RegExp,str);】根据正则表达式进行文字替换
135135
*/
136136
document.write("sunjianfeng".replace("jianfeng","shine")); //sunshine
137-
var str = "Today is fine day, today is fine day!"
137+
var str = "Today is fine day, today is fine day!";
138138
console.log(str.replace(/today/gi,"tomorrow"));//tomorrow is fine day, tomorrow is fine day!
139139
/**
140140
* 【slice(index);slice(index,index);】根据索引值截取字符串

5 进阶/55-函数的四种调用模式.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//3.构造函数模式
1212
//this--->new出来的对象
1313
//4.上下文模式
14-
//this----->指定
14+
//this--->指定
1515

1616
function fun(){
1717
console.log(this);

5 进阶/56-构造函数调用模式的特征.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
//1.构造函数的首字母要大写
1010
//2.一般情况下和new关键字一起使用
11-
//3.构造函数中的this指定而是new关键字创建出来的对象
12-
//4.默认的返回new创建出来的这个对象
11+
//3.构造函数中的this指定的是new关键字创建出来的对象
12+
//4.默认返回new创建出来的这个对象
1313

1414
function Person(){
1515

0 commit comments

Comments
 (0)