2007-06-13から1日間の記事一覧
// 新しい木クラスを作成します function Tree(name, leaf, bark) { this.name = name; this.leaf = leaf; this.bark = bark; } // 関数を追加します Tree.prototype.describe = function() { return this.name + ": leaf=" + this.leaf +", bark=" + this.b…
// 新しい木クラスを作成します function Tree(name, leaf, bark) { this.name = name; this.leaf = leaf; this.bark = bark; } // 関数を追加します Tree.prototype.describe = function() { return this.name + ": leaf=" + this.leaf +", bark=" + this.b…