【发布时间】:2013-03-15 11:52:13
【问题描述】:
我在 A.js 文件中有自定义 javascript 代码,有与之关联的智能感知,我有 A.intellise nse.js 文件与 A.js 位于同一文件夹中。
A.js 的内容:
var test = (typeof test === "undefined") || !test ? {} : test;
test= (function () {
return {
Version: "1.0.0"
};
}());
A.intellisense.js 的内容
intellisense.annotate(window, {
"test": function () {
/// <signature>
/// <summary>The Version of the test JavaScript Lbrary</summary>
/// </signature>
}
});
由于测试是在窗口级别定义的,我可以在 B.js 文件中使用测试函数,而无需在其中引用 A.js。 当我输入 test() 时,我没有得到任何智能感知,我哪里出错了。
P.S : 即使我有 _reference.js 文件并且其中引用了 A.js。
【问题讨论】:
标签: javascript visual-studio-2012 javascript-intellisense