Javascript looks for error methods to clean up

  • 2020-03-30 03:21:00
  • OfStack

This blog post has to be written. It has wasted my morning. In order to quickly find this aspect of the error in the future, save more time.

Here's what happened: I wrote a background management system that references Marix Admin, because the system contains many, many frameworks, such as jquery, bootstrap, and its own framework system, Marix, a bunch of js and CSS files. When you want to introduce an outside framework, you will have conflicts with the original library files and the format of the writing.

For the above two problems, the solutions are as follows:

First look at the site effect, if the HTML is not displayed, may be HTML format problems, if the CSS format is not displayed may be the CSS file is not introduced problems. There may also be a library file conflict.

First: writing format

First, find the official website, download the demo, and write according to the demo

If there is no problem with the format, it is a library file conflict.

Second: conflict with the original library file

After the HTML has been written in the format, it cannot be displayed after being introduced into the library file (CSS, javascript).

Comment out all the original library files and see if they show up.

If it is displayed, then scan it one by one to find the conflicting file

Related articles: