Thoughts on a website registration verification code

Source: Internet
Author: User

The following is a website verification code prompt

< Script Type = " Text/JavaScript " >
// Javascript

Function Show (){
Alert ( 2   < A <   3 );
}

Show (1);
</SCRIPT>

 

This is a simple section.CodeThe experts who have studied Java and C # certainly suddenly think that "this is impossible, and the syntax is too good"

I thought so at the time.

 

After that, I thought that I could not register something. I couldn't simply perform the analysis. First, I felt that if I could run it, it would be false.

 

Registration failed!

 

I have to work hard to open editplus and stick it to the Code to run it.

 

True is incredible!

 

Think twice about it. Open QQ and ask the experts for an explanation.

 

If the type is false, it is automatically converted to 0.

 

If yes, It is 2 <1 → false

Convert false to 00 <3 → true

PS: Alert is equivalent to the consystemic. Write () that has a reload processing project on the string.

I often write weak types (JavaScript) and strong types (Java, C .....

Let's test the following code:

0 . Alert (number ( False ));
1 . Alert ( - 1 < A <   - 2 )
2 . Alert ( 8 - True )
3 . Alert ( True + False )

 

After running, I believe you will understand .....

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.