首页 > 解决方案 > 无法让 WebStorm 识别 gsap/TweenLight 库?

问题描述

TweenLite从 CDN 使用,如下所示:

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.1/plugins/CSSPlugin.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.1/easing/EasePack.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.1/TweenLite.min.js"></script>

当我参考TweenLight时,WebStorm 说它尚未解决。我已经进入图书馆界面并检查了已经存在的“TweenLite”。我还从下载部分添加了“gsap”。它仍然说未解决。

我还使用 TweenMax 尝试了上述所有步骤。同样的问题。

在此处输入图像描述

如何让 WebStorm 识别 GSAP?

标签: webstormgsap

解决方案


推荐阅读