2006-11-29から1日間の記事一覧
関数を非同期化する関数を作ってみた。 Function.prototype.asynchronize = function() { var f = this; return function() { var resultcb = function() {}; var failcb = function(e) { throw e }; if (typeof arguments[arguments.length - 1] == 'functi…
こういう感じ var global = (function(){return this})(); だから JavaScript で SandBox を作るのは結構難しい