2010-09-01から1ヶ月間の記事一覧
JavaScript の prototype を使った継承のオーソドックスな形は以下のような感じだと思います。 function SuperClass(name) { this.name = name; } SuperClass.prototype.hello = function() { alert(this.name+" : hello!"); } function ChildClass() { Supe…
JavaScript の prototype を使った継承のオーソドックスな形は以下のような感じだと思います。 function SuperClass(name) { this.name = name; } SuperClass.prototype.hello = function() { alert(this.name+" : hello!"); } function ChildClass() { Supe…