mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-28 21:32:20 +00:00
commit
6c0a3f180e
@ -246,7 +246,7 @@ myObject // Object {[object Object]: "valueB"}
|
||||
```javascript
|
||||
const person = {
|
||||
sayName() {
|
||||
console.log(this.name);
|
||||
console.log('hello!');
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user