1. 直接在最外面的index.html中用<script>标签包裹住要引入的js文件 2. 在编译通不过的语句上面加上这么一句话: // eslint-disable-next-line 更多的方法参考 问题链接