Skip to main content
removeu 19 caracteres do conteúdo
Fonte Link
<table id="dataTable" class="table  table-condensed table-hover table-striped table-responsive">
                    <thead>
                        <tr>
                            <th>Código</th>
                            <th>Nome</th>
                            <th>CNPJ</th>
                            <th>E-mail</th>
                            <th>Responsável</th>
                            <th>telefone</th>
                                
                        </tr>
                    </thead>
                
                <tbody></tbody>                
             </table>
<table id="dataTable" class="table  table-condensed table-hover table-striped table-responsive">
                    <thead>
                        <tr>
                            <th>Código</th>
                            <th>Nome</th>
                            <th>CNPJ</th>
                            <th>E-mail</th>
                            <th>Responsável</th>
                            <th>telefone</th>
                            
                        </tr>
                    </thead>
                
                <tbody></tbody>                
             </table>
<table id="dataTable" class="table  table-condensed table-hover table-striped table-responsive">
                    <thead>
                        <tr>
                            <th>Código</th>
                            <th>Nome</th>
                            <th>CNPJ</th>
                            <th>E-mail</th>
                            <th>Responsável</th>
                                                            
                        </tr>
                    </thead>
                
                <tbody></tbody>                
             </table>
Formatação
Fonte Link
$(document).ready(function() {
    
    $.ajax({
        url: 'http://localhost:8080/exemplo',
        data: {},
        dataType: "json",
            cache: false,
            success: function (data) {
            $.each(data, function (i, val) {
                var tr = "<tr>" +
                    "<td>"+ val.id + "</td>" +
                    "<td>"+ val.id + "</td>" +
                    "<td>"+ val.id + "</td>" +
                    "<td>"+ val.id + "</td>" +
                    "<td>"+ val.id + "</td>" +
                    
                    "</tr>";
                $(tr).appendTo('tbody');

            });
        }
    });   
});

} );

$(document).ready(function() {

$.ajax({
    url: 'http://localhost:8080/exemplo',
    data: {},
    dataType: "json",
        cache: false,
        success: function (data) {
        $.each(data, function (i, val) {
            var tr = "<tr>" +
                "<td>"+ val.id + "</td>" +
                "<td>"+ val.id + "</td>" +
                "<td>"+ val.id + "</td>" +
                "<td>"+ val.id + "</td>" +
                "<td>"+ val.id + "</td>" +
                
                "</tr>";
            $(tr).appendTo('tbody');

        });
    }
});

} );

$(document).ready(function() {
    
    $.ajax({
        url: 'http://localhost:8080/exemplo',
        data: {},
        dataType: "json",
            cache: false,
            success: function (data) {
            $.each(data, function (i, val) {
                var tr = "<tr>" +
                    "<td>"+ val.id + "</td>" +
                    "<td>"+ val.id + "</td>" +
                    "<td>"+ val.id + "</td>" +
                    "<td>"+ val.id + "</td>" +
                    "<td>"+ val.id + "</td>" +
                    
                    "</tr>";
                $(tr).appendTo('tbody');

            });
        }
    });   
});
Fonte Link
Carregando