mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
给当前对象加上同名属于,形成对比
给当前对象加上同名属于,由于值不同,会有更直观的对比~ 同时,也和最后一个例子有呼应,方便初学者理解
This commit is contained in:
@@ -1032,6 +1032,7 @@ const proto = {
|
||||
};
|
||||
|
||||
const obj = {
|
||||
foo: 'world',
|
||||
find() {
|
||||
return super.foo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user