在idea的settings中找到下图,修改为es6即可。
解决idea的html代码中使用es6语法报错的问题
原文:https://www.cnblogs.com/mayiaction/p/11866009.html