var values = [];
$('.fr-checkbox-checkon').closest('td').each(function() {
var id = $(this).attr('id');
if (!id) return;
var match = id.match(/^B(\d+)-0-0$/);
if (!match) return;
var excelRow = parseInt(match[1], 10);
var frRow = excelRow - 1;
var cellValue = contentPane.getCellValue(0,4, frRow);
if (cellValue != null) {
values.push(cellValue);
}
});
if (values.length > 0) {
alert(values.join(','));
}----------------------------------
cs选择数据.rar
----------------------
附件有两种方式,你自己选择吧。。
