JavaScript axerror:unexpected token Illegal very simple code, but cannot explain the error

Source: Internet
Author: User

First look at the following code, the picture is written with notepad++, the above two code below the same, but the following is an error

Start feeling is not a variable name problem, the results found not

For this wonderful problem, I can only post code, helpless!!!

"text/javascript  ">            function f1 () {            var999;            alert (n);        }        F1 ();             </script>        <script type="text/javascript">            function F2 () {          var999;  Alert (m);         }        F2 ();              </script>

If there is an expert in the words, can you explain?

It turns out that the display inside the notepad++ is a little different:

Finally decisive choice error line front of the space, deleted, and then hit three tab key:

Appeared, with the usual dashed lines of God:

The problem actually out of the code in front of the white space character, this code was originally edited with the UltraEdit editor, the amount, if you are out of the same problem with me, this may be able to save you!

The error code is pasted:

axerror:unexpected token illegal
Element
Font
Font-family
Font-size
Font-style
Font-variant
Font-weight
Letter-spacing
Line-height
Text-decoration
Text-align
Text-indent
Text-transform
White-space
Word-spacing
Color
Background
Bg-attachment
Bg-color
Bg-image
Bg-position
Bg-repeat
Box
Width
Height
Border-top
Border-right
Border-bottom
Border-left
Margin
Padding
Max-height
Min-height
Max-width
Min-width
Outline-color
Outline-style
Outline-width
Positioning
Position
Top
Bottom
Right
Left
Float
Display
Clear
Z-index
List
List-style-image
List-style-type
List-style-position
Table
Vertical-align
Border-collapse
Border-spacing
Caption-side
Empty-cells
Table-layout
Effects
Text-shadow
-webkit-box-shadow
Border-radius
Other
Overflow
Cursor
Visibility

JavaScript axerror:unexpected token Illegal very simple code, but cannot explain the error

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.