<script>
function A(){
this.func1=function(){
alert("A");
}
}
function B(){
this.func1=function(){
delete this.func1;
this.func1();
this.func1=arguments.callee;
alert("B");
}
}
B.prototype=new A;
var o=new B;
o.func1();
</script>