The solution method of jquery in vs2008 and JS file without intelligent hint _jquery

Source: Internet
Author: User
Tags jquery library

The smart hints of jquery in vs2008

1 install VS2008SP1 patch

To make sure that your vs2008 has a SP1 patch, in Vs2008 's Help about, if installed SP1, will appear "version 3.5 SP1", no installation of course, only "version 3.5."

If it is not installed you can download SP1 here.

2 Install vs 2008 Patch KB958502 to support "-vsdoc.js" IntelliSense files.
This patch causes Visual Studio to find out if an optional "-vsdoc.js" file exists when a JavaScript library is referenced, and use it to drive the JavaScript IntelliSense engine if it exists. These annotated "-vsdoc.js" files can contain XML annotations that provide a help document for JavaScript methods, as well as additional code IntelliSense hints for dynamic JavaScript signatures that cannot be inferred automatically.

You can find out the details of the patch in "here". You can download the patch at "here" for free.

3 You must refer to the Vsdoc version of the jquery library

Copy Jquery-1.4.2.js and jquery-1.4.2-vsdoc.js to the same file directory

Referencing jquery files <script type= "Text/javascript" src= "Scripts/jquery-1.4.2.js" ></script>

You can enter $ (). Try to see if there is a smart tip!

If there is no smart hint, CTRL+SHIFT+J update! Also note that the previous JavaScript has no errors, if there are errors will not appear smart prompts, and ctrl+shift+j after the list of errors will be prompted.

jquery Smart tips in JS files

Add the following code to the JS file:

<reference path= "Jquery-1.4.2.js"/>

Then ctrl+shift+j update and then $ ()., see if there's a smart tip!

I implemented the above method of jquery in the VS2008 and JS file Smart Tips!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.