Joke Collection Website - Public benefit messages - Asp.net HTML+JS+Backstage Writing Method

Asp.net HTML+JS+Backstage Writing Method

You don't have to write code. Tell me the logic.

1. Enter the mobile phone number and click to send the verification code. With the mobile phone number as the parameter, call the background static method through AJAX to randomly generate the verification code, call the SMS interface to send it to the specified mobile phone number, and store the generated mobile phone number in the session.

2. Enter the verification code, and when the mouse leaves, you can automatically use AJAX to call the background method to compare whether the verification code is consistent with the session value.