本帖最后由 CCKan 于 2016-4-22 17:48 编辑
是的
sheet.addKeyMap(46, false, false, false, false, function () {
var selections = sheet.getSelections();
GcSpread.Sheets.SpreadActions.clear.apply(sheet);
for (var i = 0; i < selections.length; i++) {
var range = selections;
for (var row = range.row; row < range.rowCount + range.row; row++) {
for (var col = range.col; col < range.colCount + range.col; col++) {
sheet.getCell(row, col).backColor("green");
}
}
}
}); |