C # ASP JS reference path is incorrect due to error

Source: Internet
Author: User

Assuming that the JS package is placed under the Scripts folder in the root directory

The path of the current page is in another folder, then he quoted JS should: <script src= ". /scripts/jquery-1.4.1.min.js "type=" Text/javascript "></script>

Do not write <script src= "~/scripts/jquery-1.4.1.min.js" type= "Text/javascript" ></script>

Although ~/indicates that the root directory is specified

.. /indicates the previous level of the directory

.. /.. /indicates upper level two and so on

./indicates the current directory

If the JS path is not written, most browsers can find, but 360 compatibility mode and some of the lower version of the browser may be the page will die, do not respond to the request

This is not to be found in debugging.

C # ASP JS reference path is incorrect due to error

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.