本帖最后由 vuvivian 于 2019-4-24 20:07 编辑
代码:
//合并单元格
$('#merge').click(function () {
var sheet = spread.getActiveSheet();
var sel = sheet.getSelections();
if (sel.length > 0) {
sel = getActualCellRange(sel[sel.length - 1], sheet.getRowCount(), sheet.getColumnCount());
sheet.addSpan(sel.row, sel.col, sel.rowCount, sel.colCount);
}
})
报错信息:
|
|