IEで継承がうまくいかない。
なんでだろ?
<html> <head> <script type="text/javascript" src="lib/jquery/jquery.js"></script> <script type="text/javascript"> var Oya = function() { this.initialize.apply(this, arguments); }; Oya.prototype.initialize = function() { alert("oya.initialize"); } var Child = function() { this.initialize.apply(this, arguments); }; jQuery.extend(true, Child, Oya); function aaa(){ new Child(); } </script> </head> <body> <input type="button" value="button" id="exec" onclick="aaa()" /> </body> </html>
継承ができていない?