最近在写node的时候,随手用了前端常用的编辑器webstorm,但是在编码过程中,编辑页面出现了大量的红线,很影响美观。鼠标浮在红线上,信息提示:String templates are not supported by current javaScript version
经过查询相关资料发现是因为我的webstrom中的js版本太低,接下来就要更改webstorm中的Javascript的版本了。
1、点击File --> settings
2、选中javascript6之后,先点击apply ,再点击OK ,这样,我们就可以畅享ES6的便宜啦。
3、之后的编辑页面就没有红线啦
每天进步一点点