Skip to content

Commit 6c0a3f1

Browse files
authored
Merge pull request ruanyf#309 from yangkean/patch-1
9.对象的扩展 方法的name属性部分需修改
2 parents da273bb + 0b247a9 commit 6c0a3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/object.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ myObject // Object {[object Object]: "valueB"}
246246
```javascript
247247
const person = {
248248
sayName() {
249-
console.log(this.name);
249+
   console.log('hello!');
250250
},
251251
};
252252

0 commit comments

Comments
 (0)