zoukankan      html  css  js  c++  java
  • JQuery Intellisense Error

    Today I am trying out JQuery on Visual Studio 2008 for the first time. I go to the website at http://www.jquery.com/ and downloaded the library as well as the document for Visual Studio.

    So I imported the JQuery library into my VS project

    image

    But when I want to try to the intellisense, I notice it is not working!! It should be able to recognize the famous $!!

    image

    Then I realize at the bottom of the VS IDE, there is an error message -

    Warning    1    Error updating JScript IntelliSense: D:\workspace\Projects\JQuerySample\JQuerySample\scripts\jquery-1.3.2.js: Object doesn’t support this property or method @ 2139:1    D:\workspace\Projects\JQuerySample\JQuerySample\Default.aspx    1    1    JQuerySample

    image

    But this is not a bug inside the JQuery library itself. So I went back to scottgu’s blog post about on JQuery I notice something very difference with his library (besides the fact that he is using version 1.2.6).

    I notice mine has got an extra number 2 at the end of vsdoc there. So I go back to the Google code side where I downloaded the file and I found out en they release a new vsdoc file to replace the exisiting deplecated one, they ‘tangan gatal’ change the name to jquery-1.3.2-vsdoc2.js. VS Interllisense only programmed to regconized [Javascript file name]-vsdoc.js without the 2 at the back there.

    image

    That vsdoc2 is the cause of the problem here! Just rename it to jquery-1.3.2-vsdoc.js and you got JQuery Intellisense working!

    image

  • 相关阅读:
    python3+request接口自动化框架
    类型转换函数
    操作符重载(三)
    操作符重载(二)
    操作符重载(一)
    时间获取函数
    文件和目录
    Linux五种IO模型
    类中的函数重载
    系统调用IO和标准IO
  • 原文地址:https://www.cnblogs.com/RuiLei/p/1532439.html
Copyright © 2011-2022 走看看