为什么console.log不能在里面工作.each? [英] why is console.log not working inside .each?

查看:53
本文介绍了为什么console.log不能在里面工作.each?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了以下操作:

$('.not-following').each(function(i, obj) { 
      console.log('test');
});

由于某种原因,它继续打印obj而不是测试。这是什么原因?我尝试在此处

for some reason it keeps on printing the obj instead of test. Any reason why this is? I tried running this on here

推荐答案

他们覆盖了控制台

> console.log.toString()
"function (){}"

这篇关于为什么console.log不能在里面工作.each?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆