JS script in IE browser "developer mode" normal, but the normal use of the function does not work

Source: Internet
Author: User

Problem Description : Use of Third-party plug-ins online to generate a document function, IE use this function, the function can not be used, always execute half do not execute, no error in the background, but open the browser "developer mode" to see if there is JS error, in the developer mode not only no error, Features can be used normally, but can not be used if the developer mode is turned off.

Problem Solving: This problem is really annoying, other browsers are no problem, only IE browser problems, when you want to use tool debugging, the problem is not. Only one line of the trial code, see where the bottom is not executed, you can use the alert method, but this is always blocking the program may affect the test results, you can use $ ("body"). Prepend ("a") to change the content of the page to mark the location of the program execution.
Finally try to come out because of console, IE for console support is not good, but if you use the developer mode, then the debugging tools so that IE recognized the console, so try not to keep the test code console in the code. [Log] [INFO] and so on.

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.