今天导入项目时发现,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