Home >Web Front-end >JS Tutorial >javascript Find error methods and organize them_javascript skills

javascript Find error methods and organize them_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:44:281044browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn