function isUserLogin() {
    var isLogin = false;
    $.ajax({
        type:"POST",
        url:domain+"/isuserlogin.html",
        async : false,
        success:function(data){
            if(data.success){
                if (data.data) {
                    isLogin = true;
                } else {
                    isLogin = false;
                }
            }else{
                isLogin = false;
            }
        },
        error:function(){
            isLogin = false;
        }
    });
    return isLogin;
}
posted on 2018-04-11 18:05  webstrom10  阅读(144)  评论(0编辑  收藏  举报