Method definition shorthands are not supported by current JavaScript version解决方法

版权声明:未经本人允许,不得转载本博客,转载请注明地址 https://blog.csdn.net/qq_34691713/article/details/82810474

今天导入项目时发现,js文件中出现错误,显示为

method definition shorthands are not supported by current JavaScript version

中文解释是,方法定义不被当前JS版本支持,本地配置中JS版本太低

解决办法:打开File->settings->languages&frameworks中把js版本跳到6.0即可
在这里插入图片描述


本文来自 程飞龙 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/qq_34691713/article/details/82804594?utm_source=copy

猜你喜欢

转载自blog.csdn.net/qq_34691713/article/details/82810474