0
부트 스트랩을 처음 사용하고 부트 스트랩 테이블에 데이터를로드하는 몇 가지 예제를 단순히 복제하려하지만 데이터가 표시되지 않습니다. 여기 bootstrapTable을 사용하여 데이터를로드 할 수 없습니다.
<table class="table" id="table">
<thead>
<tr>
<th data-field="id">Item ID</th>
<th data-field="name">Item Name</th>
<th data-field="price">Item Price</th>
</tr>
</thead>
</table>
jsfiddle
에서 HTML입니다 그리고 여기 자바 스크립트입니다 :var $table = $('#table');
var mydata = [{
"id": 0,
"name": "test0",
"price": "$0"
}];
$(function() {
$('#table').bootstrapTable(
data: mydata)
);
});
헤더가 잘 나타나 있지만, 데이터는하지 않습니다. Here은 jsFiddle에 대한 링크입니다.
: https://datatables.net/examples/ajax/ https://datatables.net/examples/server_side/ –