jquery控制是否显示
$(document).ready(function(){
$("#hide").click(function(){
$("#p1").hide();
$("#p2").show();
});
$("#show").click(function(){
$("#p1").show();
$("#p2").hide();
});
});
显示第一段内容
显示的第二段内容
男
女
header("Content-Type:text/html; charset=utf-8");
$account = $_POST['account'];
$password = $_POST['password'];
// 判断是否正确
$msg['code'] = '200';
$msg['status'] = 'success';
$msg['msg'] = 'ok';
echo json_encode($msg);
标签:function,password,hide,show,ajax,msg,post,php,click
来源: https://www.cnblogs.com/ayanboke/p/11400529.html