Javascript和VS2012 Intellisense

编程入门 行业动态 更新时间:2024-10-10 02:20:07
本文介绍了Javascript和VS2012 Intellisense的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是Visual Studio 2012和Javscript编码的新手.我有两个问题,无法在网上找到答案:

I am new to Visual Studio 2012 and Javscript coding. I have two questions i could not find answers on the web:

  • 我有一个webforms项目,并向sript-folder(raphaeljs/)添加了一些js文件.现在,我想为我添加的js库提供Intellisense支持.有可能吗?

  • i have a webforms project and added some js-files to the sript-folder (raphaeljs/). Now i want to have Intellisense support for that js-library i added. Is that possible?

    在scripts文件夹中的"_references.js"文件是什么?我已将所有js库文件添加到该文件中,但未启用智能感知.

    for what is the "_references.js" file in the scripts folder? I added all the js-library files to that file but it doesn't enable intellisense.

    致谢

    推荐答案

    我不确定Visual Studio 2012,但是在2010年,如果将一个JavaScript文件拖到另一个JavaScript文件上,则会在第二个文件的顶部.如果引用的文件已记录在案,您将获得相当有用的智能感知,尽管即使只是为了能够浏览API的表面,它仍然很方便.

    I'm not sure about Visual Studio 2012, but in 2010, if you drag one JavaScript file onto another one it will add a /// <reference name="MyScript.js" /> line at the top of the second file. If the file being referenced is documented you will get quite useful intellisense, though it is still handy even if not for just being able to explore the surface of the API.

    此问题中有一些很好的信息: IntelliSense for Visual Studio中的Ajax和JavaScript库

    There is some good information in this question: IntelliSense for Ajax and JavaScript libraries in Visual Studio

  • 更多推荐

    Javascript和VS2012 Intellisense

    本文发布于:2023-11-12 14:08:49,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1581713.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:Javascript   Intellisense

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!