为了保存数据--其他脚本日志--我想重写console.log函数。我的脚本在任何其他脚本之前执行,所以我可以完全控制环境。这是我当前用于覆盖console.log的函数: var a = Function.prototype, b = 'toString', c = a[b], d = c.applyf[i] || d.join(this.name) : h.apply(this); }(c);
console.log = function(a
我有一个简单的remote,在其中我从一个远程API中获取数据,并且我想在console.log中使用useEffect。我试着去做,但是没有什么东西不被登录到控制台,为什么?我在这里错过了什么?image url that we received from the response above console.log(fetchedData)
// console.log</e