gpt4 book ai didi

javascript - Intellij Idea Ecmascript Harmony 模块语法

转载 作者:数据小太阳 更新时间:2023-10-29 04:32:25 24 4
gpt4 key购买 nike

我正在为一些 ES Harmony 应用程序使用 Intellij Idea。用modules syntax我希望我的 IDE 不将其突出显示为错误:

import $ from "jquery";

我在项目设置里开启了对ES Harmony的支持,但是没有用。

谢谢!

最佳答案

如果这里有人仍然遇到 ECMAScript 6 的问题,您必须在 IntelliJ 中启用它。

enter image description here

激活 ecmascript 后,将其设置为 JavaScript 语言版本:

enter image description here

关于javascript - Intellij Idea Ecmascript Harmony 模块语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21609025/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com