使用swiper插件时,遇到Do not use ‘new’ for side effects (no-new)报错!!!
报错截图:
解决办法:添加一行注释 /* eslint-disable no-new */,让eslint不检查"no-new";
添加注释之前:
添加注释之后:
参考链接:https://www.cnblogs.com/xinzaimengzai/p/9873169.html
ps:如有错误,欢迎指正
使用swiper插件时,遇到Do not use ‘new’ for side effects (no-new)报错!!!
报错截图:
解决办法:添加一行注释 /* eslint-disable no-new */,让eslint不检查"no-new";
添加注释之前:
添加注释之后:
参考链接:https://www.cnblogs.com/xinzaimengzai/p/9873169.html
ps:如有错误,欢迎指正