在Visual Studio 2010中有沒有一種方法可以在Javascript文件中爲LOCAL變量激活Intellisense?Visual Studio 2010中LOCAL變量的Javascript Intellisense
有一個MSDN How-To,它解釋瞭如何爲具有XML註釋的函數參數提供Intellisense。這工作得很好。但它並不適用於局部變量的工作: E.g:
// Intellisense for myObject works
function MyFunc(myObject) {
/// <param name="myObject " type="MyClass"></param>
}
// Intellisense for myObject doesn't work
function MyFunc() {
/// <param name="myObject " type="MyClass"></param>
var myObject = service.GetValue();
}
// Intellisense for myObject doesn't work
function MyFunc() {
var myObject = service.GetValue();
/// <param name="myObject " type="MyClass"></param>
}
你能告訴我們的'service.GetValue()'的定義? – 2012-05-29 18:26:24