JavaScriptのオブジェクト
こんな書き方ができるとは!
var sample = new Object();//コンストラクタ関数定義
sample.func1 = function()
{
this.i = 0;this.method1 = function(){
alert("The Member function is called.");
}
return 0;
}var newObj = new sample.func1();
//メソッドを呼ぶ
newObj.method1();