JavaScript Tutorial/Object Oriented/this — различия между версиями
(нет различий)
|
Версия 18:52, 25 мая 2010
The this Keyword
The this keyword points to the object that is calling a particular method.
var myHourse = new Object;
myHourse.color = "red";
myHourse.showColor = function () {
alert(this.color);
};