如何使jQuery Visual Studio 2010 IntelliSense在noconflict包装器内工作 [英] How to get jQuery Visual Studio 2010 IntelliSense to work inside a noconflict wrapper
本文介绍了如何使jQuery Visual Studio 2010 IntelliSense在noconflict包装器内工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在js文件中添加了vsdoc jquery参考:
I added the vsdoc jquery reference in my js file:
/// <reference path="../jquery-1.4.1.vsdoc.js" />
这很好用,但是一旦我在内部写入 ,就没有冲突包装器了.
This works fine, but once I write inside a no conflict wrapper...
(function ($) {
...here...
})(jQuery);
... IntelliSense不起作用.
...IntelliSense does not work.
这是为什么,有什么办法可以解决?
Why is this, and is there any way to solve this?
推荐答案
尝试在包装函数的开头添加< param/>标记:
Try adding the <param /> tag at the beginning of your wrapper function:
/// <reference path="../jquery-1.4.1.vsdoc.js" />
(function($) { /// <param name="$" type="jQuery" />
...
})(jQuery);
这篇关于如何使jQuery Visual Studio 2010 IntelliSense在noconflict包装器内工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文