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