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

给当前对象加上同名属于,由于值不同,会有更直观的对比~
同时,也和最后一个例子有呼应,方便初学者理解
This commit is contained in:
王福宗
2018-03-03 20:35:02 +08:00
committed by GitHub
parent 3c7e8a6365
commit 3d8af6149c
+1
View File
@@ -1032,6 +1032,7 @@ const proto = {
};
const obj = {
foo: 'world',
find() {
return super.foo;
}