Javascript-what are the reasons why javascript files are introduced but cannot be displayed?

Source: Internet
Author: User
The JS file for city selection is introduced. it can be displayed in the morning, but it cannot be displayed in the afternoon, and the code has not been changed. The JS file for city selection is introduced. it can be displayed in the morning, but it cannot be displayed in the afternoon, and the code has not been changed.

Reply content:

The JS file for city selection is introduced. it can be displayed in the morning, but it cannot be displayed in the afternoon, and the code has not been changed.

Check the console. Is there any exception. See if all js has been introduced

Check whether the returned data has changed.

When introducing external files, the most important thing to note is the path. since it cannot be displayed, it must be because the path is wrong. then you say you have not modified it. I have read your tag, Php is available, and the path to the project owner should be provided by the background (the output Template control of the php Framework ). So, ask what the phper next to you did.

Previously, I encountered a situation where events in the html obtained by ajax cannot be executed. the solution is to use the $ ("body"). on () method.

  1. Check whether there are any errors in the console, such as reference errors.

  2. Data problems, whether the data interface reports an error, or the data returned by the interface is incorrect.

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.