Basic knowledge of usage instructions that can run code that is not performing correctly

Source: Internet
Author: User
But with some effects, the need to introduce external JS code (external JS is generally jquery or other frameworks or some need to introduce the JS code is in fact, as long as the code can be run <script src= "JS path" ></script> are external to introduce JS) , causing a lot of friends who are not very familiar with the code, feel that this code is wrong, can not be implemented, this simple description here, so that we do not understand the error.

This is an example of an introduction to an external JS article.
Http://www.jb51.net/article/23280.htm
After opening the following code found

Then click to run the code, found that the page can not follow the instructions, in fact, run the code here, and did not load external JS here is jquery, as long as the simple right to refresh, or press the shortcut key F5 can be.


The following is a supplementary note:
Many friends look at our code, found that our code is not like other sites on the same code, can be highlighted, in fact, a lot of changes in the number of trouble, and if that may make a lot of friends can not normal copy code, if you like highlighting, You can copy the code to some editors or tools with formatting code to implement it.

Yun-Habitat community on the right side of the article for everyone to organize a number of JS or other language formatting tools.

You can choose according to your needs.
CSS online compression format (Chinese)
CSS Format finishing tool (English)
CSS shaping format
JavaScript Format Collation Tool
Jsbeautifier JS Format finishing tool (English)
PHP Format finishing Tool (English)
HTML/JS Mutual Conversion Tool
JavaScript Pack Encryption Compression tool
JS Minifier Compression
JS Obfuscation tool
Online JS Foot School Checker error
JavaScript regular expression on-line test tool

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.