Redefine console.log:(重新定义console.log:)
console.log = function (arg) {
var tempObj;
if (typeof arg === 'object' && !arg.length) {
tempObj = JSON.parse(JSON.stringify(arg));
tempObj.__proto__ = null;
return tempObj;
}
return arg;
};
This won't modify the original object which definitely needs to have __proto__.(这不会修改绝对需要__proto__的原始对象。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…