0
我在A.js文件自定义JavaScript代码,有与之相关的智能感知,我在同一个文件夹A.js. A.intellise nse.js文件关于vs2012 JavaScript智能
内容A.js的:A.intellisense.js的
var test = (typeof test === "undefined") || !test ? {} : test;
test= (function() {
return {
Version: "1.0.0"
};
}());
内容
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在它提到。