$(function(){ <!--普通登录方式跟快捷登录方式切换--> var phone_login_text = "手机快速登录"; $(".tcy_login .t_l_ways .login_way").click(function(){ if($(this).text() == phone_login_text){ $(".tcy_login .t_l_form .common_login").hide(); $(".tcy_login .t_l_form .phone_login").show(); $(this).text("账号密码登录"); }else{ $(".tcy_login .t_l_form .phone_login").hide(); $(".tcy_login .t_l_form .common_login").show(); $(this).text("手机快速登录"); } }); })