2009-04-09 関数を名前空間に閉じ込める簡単な方法のメモ JavaScript 無名関数の関数を作成する手法のメモ var my_name = new (function(){ this.foo = function(){ alert('hoge'); }; });