在 .eslintrc 文件中首先配置了 eslint 推荐配置 extends:eslint.recommended,然后在 rules 里面配置 no-console: off 进行覆盖,实际运行时无效 配置图: 运行图:
- 2
新手上路,请多包涵已解决,直接在env配置项中添加
"browser: true"
或者"node: true"