退出

function LogoutClick()
    {
        var r=confirm("确定退出吗?");
        if (r==true)
          {
              $.ajax({
                  type: "GET",
                  url: baseURL + "/api/logout",
                  data: {},
                  success: function(data){
                       if (data.code ==0 ){
                           alert("退出成功!");
                           location.href = "index.html";
                       }

                  }
              });


          }
        else
          {
          // alert("You pressed Cancel!");
          }
    }

 

posted @ 2018-01-11 13:50  huahua_0825  阅读(108)  评论(0编辑  收藏  举报