VSCode报警告Missing semicolon的解决方法

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

 

方法:

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

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

 

posted @ 2022-02-24 22:56  Clotho_Lee  阅读(2783)  评论(0)    收藏  举报