A JS plugin is not executing

Source: Internet
Author: User

Today, with a strange problem, the Bootstrap-table plugin did not execute at all. It was later found that the JS file used to perform the bootstrap startup error. Cause this will not smooth execution error JS program. Generally, there are two reasons why the plug-in cannot be executed successfully.

1. Reason 1: Some plugins need the premise JS, such as bootstrap-table need jquery,bootstrap. It must be loaded into the jquery,bootstrap before loading the bootstrap-table. This means that if there is a dependency between JS files, the JS file must be loaded in the order of dependency.

2. Cause 2:js file error, you need to execute the method in a wrong JS, cause you can not execute. (And if I transfer the contents of the JS file to the script in the current page, even though the script still contains errors, it is strange to be able to execute the calling method.) )

A JS plugin is not executing

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.