Home >Web Front-end >JS Tutorial >javascript Find error methods and organize them_javascript skills
I had to write this blog, it wasted a whole morning of my time. In order to quickly find errors in this area in the future, save more time.
The situation is like this: I wrote a backend management system that references Marix Admin, because this system includes many frameworks, such as jquery, bootstrap, and its own framework system marix, a lot js and css files. When you want to introduce an external framework, it will conflict with the original library file, and there will also be problems with the writing format.
For the above two major problems, the solutions are as follows:
First check the website effect. If the html is not displayed, it may be a problem with the html format. If the css format is not displayed, it may be a css file. No introduced problems. There may also be a library file conflict problem.
First: Writing format problem
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 writing the html according to the format, the library file (css, javascript) cannot be displayed after importing it.
Comment out all the original library files and see if they can be displayed.
If it is displayed, check one by one to find the conflicting file