1 . html代码:
<table id="IR_table" class="easyui-datagrid"></table>
2 . js代码:
$('#IR_table').datagrid({
view: detailview,
border: true,
fit: true,
collapsible: true,
pagination: true,
rownumbers: false,
nowrap: true,
scrollbarSize: 0,
sortName: 'dealtime',
sortOrder: 'desc',
method: 'post',
toolbar: '#tb_IR',
singleSelect: false,
selectOnCheck: true,
checkOnSelect: true,
onLoadSuccess: function (data) {
},
striped: true,
url: 'xxx',
queryParams: {
},
rowStyler: function (index, row) {
},
columns: [[
{
field: 'year', title: '年份'