跳到主要内容
CNode

Visual Studio Code 写es6 为什么老有错误提示

问答
Yyuanzhhh发布于 11 年前最后回复 11 年前
4100750

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

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

查看回复

回复 (4)

H
houfeng#211 年前

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

{
  "compilerOptions": {
  	"target": "ES6"
  }
}
H
hellopao#111 年前

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

参与回复

登录后即可参与回复。登录