1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

给当前对象加上同名属于,形成对比

给当前对象加上同名属于,由于值不同,会有更直观的对比~
同时,也和最后一个例子有呼应,方便初学者理解
This commit is contained in:
王福宗 2018-03-03 20:35:02 +08:00 committed by GitHub
parent 3c7e8a6365
commit 3d8af6149c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1032,6 +1032,7 @@ const proto = {
}; };
const obj = { const obj = {
foo: 'world',
find() { find() {
return super.foo; return super.foo;
} }