EasyUi DataGrid 获取选中行的checkbox
var checked = $(":checkbox[name=ID]:checked");
console.log(checked);
var IDS = new Array();
$.each(checked, function (i, v) {
IDS[i] = v.value;
});
获取行的内容
var row = $('#jgrid').datagrid('getSelected');
EasyUi DataGrid 获取选中行的checkbox
var checked = $(":checkbox[name=ID]:checked");
console.log(checked);
var IDS = new Array();
$.each(checked, function (i, v) {
IDS[i] = v.value;
});
获取行的内容
var row = $('#jgrid').datagrid('getSelected');