function login_out(url){ if (confirm('您是否要退出登录吗?')){ window.location.href=url } }