Richie

Sometimes at night when I look up at the stars, and see the whole sky just laid out there, don't you think I ain't remembering it all. I still got dreams like anybody else, and ever so often, I am thinking about how things might of been. And then, all of a sudden, I'm forty, fifty, sixty years old, you know?

visual studio 2008 jquery智能感知出错

jquery用的1.4.2,vsdoc用的1.4.1的,没有智能提示了,加载IntelliSense时的错误信息:
更新 JScript IntelliSense 时出错,对象不支持此属性或方法,childNodes为空或不是对象等
Error updating JScript IntelliSense, Object doesn't support this property or method, childNodes is null or not an object

参考StackOverflow上的Adding additional js files breaks jQuery IntelliSense
jquery-1.4.1-vsdoc.js用于jquery 1.4.2应该没什么大问题,问题主要是跟jquery plugin有关
比如用到了jquery.menu.js,添加一个空的js文件,命名为jquery.menu-vsdoc.js就OK了

让visual studio 2008支持jquery智能提示,参考:jQuery Intellisense in VS 2008
主要步骤:
1. 安装visual studio 2008 sp1
2. 安装VS 2008 Patch KB958502
3. 在jquery download下载jquery的visual studio文档

posted on 2010-03-02 13:37  riccc  阅读(1628)  评论(0编辑  收藏  举报

导航