VSCode报警告Missing semicolon的解决方法


原因:jshint插件提示句末需要分号";"

方法:

文件 -> 首选项 -> 设置 -> 检索“jshint: options” -> 点击“在settings.json中设置” -> 在"jshint.options": { }中加入"asi": true

"jshint.options": {
    "asi": true
}