<ul class="gList-rank">
    <% for(var i=0; i<data.length && i<10; i++){ %>
    <% if(i==0){ %>
    <li class="item-rank active">
    <% }else{ %>
    <li class="item-rank">
    <% } %>
    <a href='./simulatorDetail.html?gameId=<%= data[i]["id"] %>&tid=45572470' target="_blank">
        <div class="item-index">
            <em class="item-index"><%= i+1 %></em>
        </div>
        <div class="item-cont">
            <div class="item-cover">
                <img src='<%= data[i]["icon"] %>' alt='<%= data[i]["name"] %>'>
            </div>
            <div class="item-info">
                <h3 class="item-title"><%= data[i]["name"] %></h3>
                <p class="item-dl"><%= data[i]["downloadNum"] %><span>人下载</span></p>
            </div>
        </div>
    </a>
    </li>
    <% } %>
</ul>