eslint配置了不允许使用alert,但是有个需求需要用到。

//eslint-disable-next-line
alert('测试');

如上,即可跳过当前行代码检查了

相关文章:

  • 2021-09-22
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2021-08-16
  • 2021-12-04
  • 2022-12-23
  • 2021-10-04
猜你喜欢
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案