1.方法一:
采用注释的方法:
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
您可以使用特殊的注释来禁用某些警告。
使用//eslint disable next line忽略下一行。
使用/* eslint disable */忽略文件中的所有警告。IDEA选中代码,shift+tab整体缩进两行
2.方法二:
采用打印参数的方法
console.log(对应的参数)