var irank = 0;
        //总排名分页显示
        function fenye() {
            var html = '';
            for (var i = 0; i < 10; i++) {
                if (irank < RecordData.length) {
                    if (RecordData[irank].avatar == "" || RecordData[irank].avatar == null || RecordData[irank].avatar == undefined) {
                        RecordData[irank].avatar = 'img/rank/malathion.jpg';
                    }
                    html += '<li>';
                    html += '<span class="mc">' + (irank + 1) + '</span>';
                    html += '<span class="avatar"><img src="' + RecordData[irank].avatar + '" ></span>';
                    html += '<span class="name">' + RecordData[irank].nickname + '</span>';
                    html += '<span class="cj">' + GetDateTime(RecordData[irank].GameTime) + '</span>';
                    html += '</li>';
                }
                irank++;
            }
            $(".rank").append(html);
        }
 
//游戏总排名
        function GetData_RecordRank() {
            $.ajax({
                type: 'post',
                url: 'Malathion.ashx?Type=GetData_RecordRank',
                dataType: 'json',
                async: false,
                success: function (result) {
                    if (result != null) {
                        var rank = result.Rows;
                        if (rank.length > 0) {
                            RecordData = result.Rows;
                            //alert("one");
                            fenye();
                        }
                    }
                }
            });
        }

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2021-10-08
  • 2022-01-07
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2022-12-23
  • 2021-09-04
  • 2021-09-04
相关资源
相似解决方案