【发布时间】:2012-06-16 21:47:28
【问题描述】:
我在我的 javascript 代码中成功地使用了智能感知功能,但我不知道如何让它为 var 工作,或者我是否应该以不同的方式设计这个类,以便我可以有效地记录它。
(function ($)
{
$.myNamespace.MyClass = {
m_varIWantToCommentOn: null,
/// <summary locid="m_varIWantToCommentOn">
/// *This doesn't work here* How should I comment on what this var is for?
/// </summary>
Init: function ()
{
/// <summary locid="Init">
/// Called when MyClass is initialized for the first time. this comment works fine.
/// </summary>
// ...use m_varIWantToCommentOn in some way...
}
}
})(jQuery);
【问题讨论】: