JavaScriptでのclone
- 404 Blog Not Found:javascript - お伺い - Object.prototype.clone()(はげしくいまいち)
- http://la.ma.la/blog/diary_200510062243.htm(return Array.apply(null,this))
- http://la.ma.la/blog/diary_200711270645.htm
- 関数一発でプロトタイプチェーンに繋げて、オブジェクトをクローンする。 - IT戦記
function clone(obj){ var F = function(){}; F.prototype = obj; return new F; }
これにはちょっと感動した。