运行代码
(Shift+Enter)
HTML教程
奔月教程(runoon.com)
JavaScript this 关键字
实例中
this
指向了 person2,即便它是 person1 的方法:
运行结果