一、Click事件的用法
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>click事件</title> </head> <body> <form action=""> <input id ='username' type="text"> <input id='pwd'type="password"> <input id ='i1'type="submit" value="提交"> </form> <script src="jquery-3.3.1.min.js"></script> <script> $('#i1').on('click',function () { alert(123); }) </script> </body> </html>