【问题标题】:Visual Studio intellisense not working with DHTMLX suite 5Visual Studio 智能感知不适用于 DHTMLX 套件 5
【发布时间】:2016-09-30 21:29:04
【问题描述】:

自从我将 DHTMLX 套件更新到 5.0 版后,在 Visual Studio Community 2015 版本 14.0.24720.00 更新 1 中键入 dhtmlx 函数时,我没有收到智能感知建议。

这些函数都可以工作,但我必须手动输入它们,而且我没有得到任何关于函数参数等的反馈。所有非 dhtmlx 相关的函数都可以正常使用 intellisense。

我在 MVC 项目中使用我的 DHTMLX Suite,dhtmlx.js 文件位于 "~/codebase/" 下,使用 js 的视图位于 ~/Views/Home/Index

我在标题中使用带有<script src="~/codebase/dhtmlx.js")"></script> 的自定义布局。 View 在 <script type="text/javascript"> functions </script> 标签内运行 scipts。

Intellisense 确实适用于 DHTMLX Suite 4.6,但不适用于 DHTMLX Suite 5.0。我错过了什么吗?

【问题讨论】:

    标签: javascript model-view-controller visual-studio-2015 intellisense dhtmlx


    【解决方案1】:

    我发现答案与this question 中接受的答案相似。

    添加 dhtmlx.js 作为对当前组的引用就可以了。要添加参考,请选择

    工具 > 选项

    文本编辑器 > JavaScript > IntelliSense > 参考

    找到 dhtmlx.js 文件并将文件路径写入Add a reference to current group 并按添加

    【讨论】:

      猜你喜欢
      • 2015-07-02
      • 2022-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-07
      • 2016-03-20
      • 2022-07-19
      • 2018-02-12
      相关资源
      最近更新 更多