Visual Studio Code 写es6 为什么老有错误提示
发布于 8 年前 作者 yuanzhhh 9558 次浏览 来自 问答

{AD347655-37C5-462D-A953-E113708138B9}.bmp {CE4E5EAA-AF73-438A-AB04-17932E845D6B}.bmp

老是给错误提示,但运行没问题…求问怎么办~~~

4 回复

要在项目根目录下建立一个jsconfig.json 你可以npm install jsf -g 然后执行jsf

根目录新建一个 jsconfig.json,输入如下内容:

{
  "compilerOptions": {
  	"target": "ES6"
  }
}

@hellopao 嗯嗯,谢谢

@houfeng 嗯嗯,谢谢,解决了~

回到顶部