Instructions for running code that doesn't execute properly _ Basics _ Scripting Home

Instructions for the use of executable code that does not execute properly

Updated: May 13, 2010 01:01:21 Author:
Script home website In order to facilitate everyone to quickly view the effect, as long as you run the code that may see the effect.
However, with some effects, it is necessary to introduce external JS code (external js is generally jquery and other frameworks or some js code that needs to be introduced, in fact, as long as there is <script src="js path "></script> in the running code, it is an external introduction of js), leading to many friends who are not very familiar with the code. Feel this code is wrong, can not be executed, here is a simple explanation, let everyone do not understand the error.

Here is an example of an article introducing external Js.
https://www.jb51.net/article/23280.htm
When opened, the following code is found

So after clicking the run code, it is found that the page does not execute according to the instructions. In fact, the code is run here, and the external js is not loaded. Here is jquery.


The following is a supplementary note:
Many friends look at our code, found that our code is not like the code on other websites, can be highlighted, in fact, one batch modification is more troublesome, two if that may make many friends can not copy the code normally, if you like to highlight, you can copy the code to some editor or tools with formatted code to achieve.

Script Home special in the right side of the article for you to organize some js or other language formatting tools.

You can choose according to your needs.
CSS Online Compression Formatting (Chinese)
css Formatting Tool (English)
CSS shaping formatting
JavaScript formatting tool
jsbeautifier Js Formatting Tool
php Formatting Tool (English)
HTML/JS interconversion tool
javascript pack encryption and compression tool
JS Minifier compression
JS obfuscation tool
Online JS script validator error
JavaScript regular expression online testing tool

Related article

Latest comments