否则, this 的值会被设置为 undefined
应当是:
否则, this 的值会被设置为全局对象
调用person.getGreeting()方法时输出的内容就变为了”Woof”应为调用friend.getGreeting()方法时输出的内容就变为了”Woof”
get-Prototype-Of
应修改为:
getPrototypeOf
倒数第4行
person.get-Greeting()
person.getGreeting()
第五行:解构是一种打破数据解构…应改为:解构是一种打破数据结构…英文原文:…which is the process of breaking a data structure down into smaller parts.
应当是:
调用person.getGreeting()方法时输出的内容就变为了”Woof”
应为
调用friend.getGreeting()方法时输出的内容就变为了”Woof”
应修改为:
倒数第4行
应修改为:
第五行:解构是一种打破数据解构…
应改为:解构是一种打破数据结构…
英文原文:…which is the process of breaking a data structure down into smaller parts.