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.
-
Check whether there are any errors in the console, such as reference errors.
-
Data problems, whether the data interface reports an error, or the data returned by the interface is incorrect.