JS对象冒充中delete问题
function ClassA(sColor) { this.color=sColor; this.sayColor=function() { alert(this.color); }; } function ClassB(sColor) { this.newMethod=ClassA; this.newMethod(sColor); delete this.newMethod; }