constructor.prototype

一个很好玩的小问题
考大家对js的理解
function alert (){};

________________ // 填空

alert(1); 使1弹出

 

 

 

 

 

 

 

 

 

 http://perfectionkills.com/understanding-delete/
delete window对象在不同浏览器下表现的问题 
 
 function alert (){};
var alert = function (msg){
    window.constructor.prototype.alert.call(this,msg)
}
alert(1);  

 

posted @ 2013-08-14 09:28  龙则  阅读(181)  评论(0编辑  收藏  举报