运行代码
(Shift+Enter)
HTML教程
奔月教程(runoon.com)
JavaScript
this
关键字
实例中,
this
指向了
person
对象。
因为 person 对象是 fullName 方法的所有者。
运行结果