4
如何告訴Visual Studio 2010將我的變量識別爲給定類的實例?使用XML註釋爲類實例啓用Javascript Intellisense
var myObjCls = function() {
this.Hello = "World";
};
var anotherObjCls = function (myObj) {
/// <param name="myObj" type="myObjCls"></param>
myObj. // Hello is NOT available
var myObjLocal = new myObjCls();
myObjLocal. // Hello is available
}
因此,我的參數XML文檔不起作用。我究竟做錯了什麼?