ajax的jQuery写法

       $(document).ready(function () {
            $.ajax({
                url: "ajax.aspx",
                success: function (cout) {
                    var CountArray = new Array;
                    CountArray = cout.split(',');
                    var GetAllSchoolBaseCourse_Count = CountArray[0];
                    var AllCourse = CountArray[1];
                    if (GetAllSchoolBaseCourse_Count == 0) {
                        $("#SchoolBase").css("display", "none");
                    }
                    if (AllCourse == 0) {
                        $("#AllCourse").css("display", "none");
                    }
                }
            });
        });

 

posted @ 2015-12-25 11:13  密西西比的深蓝  阅读(183)  评论(0编辑  收藏  举报