2007-01-31 prototype javascript インスタンスプロパティ var ClassTest = function(str){ this.propaty1 = str } var test1 = new ClassTest("test1") alert(test1.propaty1) // "test1" クラスプロパティ ClassTest.prototype.propaty2 = "classpropaty" var test2 = new ClassTest("test2") alert(test2.propaty2) // "classpropaty"