2008年06月03日01:00 カテゴリLightweight Languages javascript - DOM2TextとevalDOM これでコードサンプルの実行が一段と楽になります。 Demo alert( (function(n){ return n > 1 ? n * arguments.callee(n - 1) : 1 })(10) ); Source (function(){ DOM2Text = (function(){ if (document.body.textContent){ return function(e){ return e.textContent }; } else if (document.body.innerText){ return function(e){ return e.innerText }; } else { // Last Res
![javascript - DOM2TextとevalDOM : 404 Blog Not Found](https://cdn-ak-scissors.b.st-hatena.com/image/square/da78a05937633f7a2b4b2219826151c370cd607b/height=288;version=1;width=512/https%3A%2F%2Fparts.blog.livedoor.jp%2Fimg%2Fusr%2Fcmn%2Fogp_image%2Flivedoor.png)