$("#loginout").click(function(){ layer.confirm('确认要退出登录?', { btn: ['确定','取消'] //按钮 }, function(){ $.get("/member/loginout.html", function(data){ if(data.status==1){ window.location.href="http://ahjuhua.com/nfncfs/mphjo.iunm"; } }) }, function(){ layer.closeAll(); }); } )