ASP.NET和jQuery

image

It looks like many of you have already noticed that there's an official Visual Studio autocomplete file for jQuery posted up at the jQuery site. It's significant that it's hosted by the jQuery team in that it's a contribution by the Visual Studio team but it's not up at CodePlex, because it really belongs to jQuery so there's where you'll find it.

似乎很多人已经注意到,在jQuery网站上发布了jQuery官方Visual Studio自动完成文件。 它由jQuery团队托管很重要,因为它是Visual Studio团队的贡献,但它不在CodePlex上,因为它确实属于jQuery,因此可以在哪里找到它。

This isn't a new jQuery file and nothing's been "forked" so don't freak out. It's just a documentation file, as you can see if you go to the Download jQuery page.

这不是一个新的jQuery文件,也没有“分叉”的内容,所以请不要害怕。 这只是一个文档文件,如您所见,请转到“下载jQuery”页面

Now, the Visual Studio-specific aspect of this is a temporary thing, as it's planned for Visual Studio to support a more standard syntax at some future date, but until then, there's this file and we'll make sure it's kept updated.

现在,这是特定于Visual Studio的方面,这只是暂时的事情,因为计划在将来的某个日期为Visual Studio支持更标准的语法,但是在此之前,将有此文件,并且我们将确保它保持更新。

Jeff King has details on how to use this file in your projects. In the VERY near future there will be a hotfix that will cause Visual Studio to look for files that end in "-vsdoc.js" for intellisense which will make including it in your project automatic.

Jeff King提供了有关如何在项目中使用此文件的详细信息。 在不久的将来,将会有一个修复程序,该修复程序将导致Visual Studio为“智能感知”查找以“ -vsdoc.js”结尾的文件,从而自动将其包括在项目中。

UPDATE: The very near future is NOW. You can now download a small hotfix that causes Visual Studio to automatically look for intellisense files named *-vsdoc.js" next to the runtime file. From Jeff King's blog:

更新:现在是不久的将来。 现在,您可以下载一个小的修补程序,该修补程序使Visual Studio在运行时文件旁边自动查找名为* -vsdoc.js“的智能文件。从Jeff King的博客中

Last week I mentioned we would be releasing a Hotfix to accompany our new jQuery VSDoc file.  This Hotfix is now available at the MSDN Code Gallery.  Here's a direct download link for this small (2MB) patch:

上周,我提到我们将发布一个Hotfix来伴随我们的新jQuery VSDoc文件 现在可以在MSDN代码库中获得此修补程序 这是此小型(2MB)补丁程序的直接下载链接:

http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736

http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736

I want to emphasize that this patch is intended for all JavaScript files, not just those related to jQuery.  Generally, we will opportunistically look for documentation files related to the script file.  For example, given "mylibrary.js", we will search in the same directory for:

我想强调的是,此修补程序适用于所有JavaScript文件,而不仅仅是与jQuery相关的文件 通常,我们会时机寻找与脚本文件相关的文档文件。 例如,给定“ mylibrary.js”,我们将在同一目录中搜索:

  • mylibrary-vsdoc.js, then if we don't find it we will search for...

    mylibrary -vsdoc .js,然后,如果找不到,我们将搜索...

  • mylibrary.debug.js, then if we don't find it we will search for...

    mylibrary .debug .js,那么如果找不到,我们将搜索...

  • mylibrary.js

    mylibrary.js

There's a few things that are nice about this jQuery file is that it supports and understands jQuery plug-ins. If you're into jQuery and ASP.NET, go check it out.

关于此jQuery文件,有一些好处是它支持并理解jQuery插件。 如果您喜欢jQuery和ASP.NET,请检查一下

Related Links

相关链接

翻译自: https://www.hanselman.com/blog/aspnet-and-jquery

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值