jquery repeated loading, resulting in the JS all failure problem dependent on jquery

Source: Internet
Author: User

The parent page introduces the sub-page, the child page introduces the Jquery.js file, the parent page JS relies on the jquery.js, the problem is, the total hint JS object is invalid. Guessing that the jquery loading order is not the first cause.

Parent page:


Sub-page:


From this point of view, Jquery.js is the earliest, but why other JS are prompt attribute invalid it.


After using IE11 's F12 tool to see the JS loading order, found that jquery is the first load, just add the page loaded, suddenly there is a request to load a jQuery.


The reason is the following code:
$ (function () {
$ ("#zjyw_table_1"). Load ("xxx.jsp");
}
Xxx.jsp loaded the jquery.js again. This sentence is normal after the comment.

This problem is still depressed for a long time, record, convenient for other people ha.

jquery repeated loading, resulting in the JS all failure problem dependent on jquery

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.