1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-28 21:32:20 +00:00

Merge pull request #309 from yangkean/patch-1

9.对象的扩展 方法的name属性部分需修改
This commit is contained in:
Ruan YiFeng 2017-01-07 23:50:06 -06:00 committed by GitHub
commit 6c0a3f180e

View File

@ -246,7 +246,7 @@ myObject // Object {[object Object]: "valueB"}
```javascript ```javascript
const person = { const person = {
sayName() { sayName() {
console.log(this.name);    console.log('hello!');
}, },
}; };