阅读背景:

Javascript学习笔记之 对象篇(四) : for in 循环

来源:互联网 

!--NEWSZW_HZH_BEGIN--

先上典范:

// Poisoning Object.prototype
Object.prototype.bar = 1;

var foo = {moo: 2};
for(var i in foo) {
 console.log(i); // prints both bar and moo
}
// Poisoning Obj




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: