Web front-end development also needs logs_javascript skills
WBOYOriginal
2016-05-16 18:14:261409browse
For example, IE6 is not so rich on it, which brings a lot of pain to program debugging, so real-time log output is a good choice to know where the program is covered. It is necessary even on advanced browsers. It is much faster and easier than debugging the program to determine whether the corresponding business code has been executed. Well, let me introduce to you a method I use in my spare time. Written debugging information output tool. Code above:
The corresponding log will appear on the page. This log output part of the code is taken from a unit test module of the Jquery author.
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