JScript IntelliSense: Working with jQuery

We have good news for jQuery fans.  The hotfix we released today fixes a bug in IntelliSense where it would fail with jQuery.  Any page with jQuery should just work now.  While experimenting with this new-found functionality today, I found annotating the library with a few XML Doc Comments really made a big difference.  The key is to add a return type of "jQuery" like this:

[转]让VS2008支持JQUERY的javascript语法提示

Here's some jQuery chaining with IntelliSense:

[转]让VS2008支持JQUERY的javascript语法提示

[转]让VS2008支持JQUERY的javascript语法提示

There were only a few functions that (due to the way they were declared) were not able to be annotated.  Special thanks to Brennan where I borrowed the comments from.  If anyone will be making a fully annotated version of jQuery, I'd be happy to post a link to it from here.

Jeff King
Program Manager
Visual Studio Web Tools

Posted: Friday, February 08, 2008 9:20 PM by WebDevTools

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2022-03-02
  • 2021-06-12
  • 2021-12-03
  • 2022-01-12
猜你喜欢
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2021-11-20
  • 2021-11-18
相关资源
相似解决方案