cause

IDE: IDEA 2018 IU
语句:alert(`${textStatus}`)
报错信息:String templates are not supported by current JavaScript version
原因:模板字符串是ES6的标准,而IDEA中的JS默认为ES5

solve

修改IDEA配置中JS的版本从默认的ES5ES6
呼出setting窗口:Ctrl+Alt+SFile->Settings
IDEA String templates are not supported by current JavaScript version

这只是设置了本project的配置。
想设置(所有项目的)默认配置,按以下流程:
IDEA String templates are not supported by current JavaScript version
设置细节同上。

相关文章:

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