ãã®ä»¶ã«ã¤ãã¦ã http://d.hatena.ne.jp/iskwn/20091215/1260828978 ç¶æ¿ã¨ãããã¹ã³ã¼ããããããããã¨ããã®ãã¡ãªããã ã¨æããã©ãã«ãã»ã«åããããã®ã大ããªã¡ãªããããªã¨æãã function Foo(){} (function(){ var bar = 'bar'; this.bar = bar.toUpperCase(); function baz () { console.log('baz'); } this.baz = function() { baz(); console.log('BAZ'); } }).call(Foo.prototype); function Bar(){} Bar.prototype = new Foo(); (function() { this.hoge = 'hoge'; this.baz = fu
{{#tags}}- {{label}}
{{/tags}}