美文网首页
vue 4.x项目console.log()打印报错问题

vue 4.x项目console.log()打印报错问题

作者: Fanny | 来源:发表于2020-01-14 17:09 被阅读0次

vue4.x的项目 正常使用console.log(data) ,一直报错,但是使用window.console.log(data),又没有问题,
虽然可以使用但是每次打印的时候很是麻烦
原因: 创建项目的时候使用了ESLint检查代码质量的提示,
解决: 关闭ESLint 的检查

image.png

这样就可以了

相关文章

网友评论

      本文标题:vue 4.x项目console.log()打印报错问题

      本文链接:https://www.haomeiwen.com/subject/xuyaactx.html