Jquery intelliisense in Visual Studio

Source: Internet
Author: User

Solve the Problem of jquery smart prompts in.

Problems:

  1.Smart notification2.All page prompts3.Non-static URL

Solution:

Step1.Download jquery files as well as Visual Studio AutoComplete documentation

From here.

Step2.And then include them in your project without changing the name structure, which shoshould be like "<jslib>. js", "<jslib>-vsdoc. js ".

Step3.And then make a reference. Take an Asp.net MVC project as example, the fowlowing lines placed in the head of a master page works perfect. (You shocould change the URL upon your situation)

 

<SCRIPT src = "<% = URL. Content ("~ /Scripts/jquery-1.3.2.min.js ") %>" type = "text/JavaScript"> </SCRIPT>
<% IF (false)
{
%>
<SCRIPT src = "http://www.cnblogs.com/../Scripts/jquery-1.3.2.min.js" type = "text/JavaScript"> </SCRIPT>
<SCRIPT src = "http://www.cnblogs.com/../Scripts/jquery-1.3.2.min-vsdoc.js" type = "text/JavaScript"> </SCRIPT>
<%
}
%>

Or

 

<SCRIPT src = "<% = URL. Content ("~ /Scripts/jquery-1.3.2.min.js ") %>" type = "text/JavaScript"> </SCRIPT>
<% # If debug %>
<SCRIPT src = "http://www.cnblogs.com/../Scripts/jquery-1.2.6.min.js" type = "text/JavaScript"> </SCRIPT>
<SCRIPT src = "http://www.cnblogs.com/../Scripts/jquery-1.2.6.min-vsdoc.js" type = "text/JavaScript"> </SCRIPT>
<% # Endif %>

 

 

Alternatively,You can download a patch for Visual Studio 2008 (with SP1) from here, and learn more from here, and then just include jquery file in your pages.

 

------------------------------------------------------

No copy right, no feed back. Just take it for any use. _ by mien

------------------------------------------------------

 

Related Article

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: info-contact@alibabacloud.com 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.