提示:method definition shorthands are not supported by current JavaScript version

当创建Vue生命周期的钩子实例时,pycharm中的js文件会提示:
method definition shorthands are not supported by current JavaScript version
意思是:该方法定义的缺陷是不支持当前的JavaScript版本。

解决办法:

打开 File -> Settings -> Languages & Frameworks -> Javascript

更改JavaScript版本为ECMAScript 6

如下图:

method definition shorthands are not supported by current JavaScript version

相关文章:

  • 2021-07-24
  • 2022-12-23
  • 2021-12-13
  • 2021-03-31
  • 2021-09-28
  • 2021-10-03
  • 2021-11-26
  • 2021-11-13
猜你喜欢
  • 2021-04-11
  • 2022-12-23
  • 2021-07-28
  • 2021-06-20
  • 2021-11-14
  • 2021-06-14
  • 2021-04-24
相关资源
相似解决方案