JavaScript中出现这个statement expected 我今天编写html的时候报了这个:statement expected 这是因为当前的js编译工具太旧,换个新的就好了。 具体做法: 再设置里更改,如下图: