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

Merge pull request #619 from wfzong/patch-2

给当前对象加上同名属于,形成对比
This commit is contained in:
Ruan YiFeng 2018-03-04 20:07:11 -06:00 committed by GitHub
commit 13e78981e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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