码迷,mamicode.com
首页 > 其他好文 > 详细

获取全局变量

时间:2015-10-26 15:07:49      阅读:93      评论:0      收藏:0      [点我收藏+]

标签:

 var blacklist; //[‘梁晋玮‘, ‘林志强‘, ‘邓琳丽‘, ‘南通哥‘, ‘朱林林‘];
        var usernamelist; //[‘sf928606‘, ‘琳0006‘, ‘newhouse326492318‘];
        function GetBlacklist()//获取黑名单姓名
        {
            var blist;
            $.ajax({
                async: false,
                type: "POST",
                url: "/Pay/GetBlacklist.do?",
                cache: false,
                timeout: 60 * 60 * 1000,
                dataType: "json",
                success: function (result) {
                    if (result != null) {
                        blist = result;
                        //blacklist = result;

                    }
                    else {
                        blist = null;
                    }
                }
            });
            return blist;
                 //blacklist = blist;
        }
        function GetUsernamelist() {//获取黑名单用户名
            var blist;
            $.ajax({
                async: false,
                type: "POST",
                url: "/Pay/GetUsernamelist.do?",
                cache: false,
                timeout: 60 * 60 * 1000,
                dataType: "json",
                success: function (result) {
                    if (result != null) {
                        blist = result;
                        //usernamelist = result;

                    }
                    else {
                        blist = null;
                    }
                }
            });
            return blist;
            //blacklist = blist;
        }

 

获取全局变量

标签:

原文地址:http://www.cnblogs.com/qinge/p/4910986.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!