Adding additional js files breaks jQuery IntelliSense

前端 未结 6 1207
名媛妹妹
名媛妹妹 2021-02-04 15:22

I have been using jQuery IntelliSense in VS2008 and it has been great. Recently I added a reference to jQuery UI and since then, the jQuery IntelliSense has went away. I found

6条回答
  •  隐瞒了意图╮
    2021-02-04 15:40

    Great, the tweak is by creating an empty *-vsdoc.js file for each troublesome *.js files.

    I found this error caused by anonymous function e.g. like this:

    (function($) {
        $.anything...;
    })(jQuery);
    

    Hope this caused will help somebody creating the http://code.msdn.microsoft.com/KB958502 and JScript IntelliSense Team.

提交回复
热议问题