Visual Studio 中的原型/Scriptaculous 智能感知

发布于 2024-08-16 15:27:53 字数 78 浏览 2 评论 0原文

如何获得 Prototype / Scriptaculous 的智能感知,就像我们在 Visual Studio 中获得 jQuery 一样?

How do I get intellisense for Prototype / Scriptaculous like we get for jQuery in Visual Studio?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

久伴你 2024-08-23 15:27:53

获得一些东西

/// <reference path="path/to/prototype.js" />

它当然并不完美,但您可以通过添加到 JavaScript 文件的顶部来 。实际上,如果您在 Visual Studio 中打开了一个 JS 文件,并将 prototype.js 文件拖到打开的文件中,它会自动为您添加该引用。

这将为您提供非常较差的 IntelliSense 支持,但也许总比没有好。

It's certainly not perfect, but you can get a little bit by adding

/// <reference path="path/to/prototype.js" />

to the top of your JavaScript files. Actually, if you have a JS file open in Visual Studio and you drag the prototype.js file into your open file, it will automatically add that reference for you.

This will give you very poor IntelliSense support, but perhaps it is better than nothing.

风情万种。 2024-08-23 15:27:53

我可能是错的,但我真的怀疑现在是否有任何错。

目前,要么您自己编写并与世界分享,要么等待有人创建它们。

PS:jQuery 智能感知支持作为 VS.NET 的修补程序发布。这是有道理的,因为 jQuery 有点“认可' 由 MS 人员编写。我想说,他们不太可能为其他 JS 框架发布类似的支持。

I might be wrong but I really doubt there is any for now.

For now, either you write your own and share with the world or wait for someone to create them.

PS: jQuery intellisense support was released as a hotfix for VS.NET. It makes sense as jQuery is sort of 'endorsed' by the MS guys. Chances for them to release similar support for other JS framework is unlikely I'll say.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文