Instructions on Running code failure

Source: Internet
Author: User

But with some results, external JS code needs to be introduced (external js is generally a framework such as jquery or some js Code to be introduced, as long as the code that can be run contains <script src = "js path"> </script> js is introduced externally ), as a result, many friends who are not very familiar with the code feel that the code is wrong and cannot be executed. Here is a simple description to avoid mistakes.

Here is an introduction to external Js as an example.
Http://www.jb51.net/article/23280.htm
The following code is displayed:

After you click Run code, you will find that the page cannot be executed as described. In fact, the code is run here, and external js is not loaded. jquery is used here. Just right-click and refresh it, or press the shortcut key F5.


The following is a supplementary description:
Many of our friends read our code and found that our code is not highlighted like the code on other websites. In fact, batch modification is troublesome, second, if this happens, many friends may not be able to copy the code normally. If you like to highlight the code, you can copy the code to some editors or tools with formatted code.

On the right side of the article, I sorted out some js or other formatting tools.

You can select as needed.
CSS online compression and formatting (Chinese)
Css formatting tools (English)
CSS formatting
JavaScript formatting Tool
Jsbeautifier Js formatting tool (English)
Php formatting Tool)
HTML/JS conversion tools
Javascript pack encryption and compression Tool
JS Minifier Compression
JS obfuscation Tool
Error in online JS script validator
JavaScript Regular Expression Online Testing Tool

Related Article

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.