使用jQuery 1.2.6的Visual Studio JScript的智能感知错误? [英] Visual Studio jscript intellisense error with jQuery 1.2.6?
问题描述
我得到警告子节点为空或不是一个对象的不同的行号,这取决于我引用该库的版本(我已经试过约三个不同版本的1.2.6),因此,我得到插孔jQuery的智能感知。
I get the warning "childNodes is null or not an object' with different line numbers, depending on which version of the library I reference (I've tried about three different versions of 1.2.6). Consequently, I get jack for jQuery intellisense.
我可以破解这得到它的工作,但我宁愿不是我不明白,更改以下行的全部含义:
I can hack this to get it to work, but I'd rather not as I don't understand the full implications of changing the following line:
elem = jQuery.makeArray(div.childNodes);
这样:
//HACK: VS intellisense fix
if(div && div.childNodes)
elem = jQuery.makeArray(div.childNodes);
(变更线只有一次在源出现)。是什么给了?
(The changed line only appears once in the source). What gives?
推荐答案
你试过添加引用可在这里唯一的文档文件?
<一href=\"http://blogs.ipona.com/james/archive/2008/02/15/JQuery-IntelliSense-in-Visual-Studio-2008.aspx\"相对=nofollow> jQuery的智能感知在Visual Studio 2008
Have you tried adding a reference to the documentation-only file available here? jQuery IntelliSense in Visual Studio 2008
这篇关于使用jQuery 1.2.6的Visual Studio JScript的智能感知错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!