var spreadNS = GC.Spread.Sheets;
$(document).ready(
function()
{
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),
{
sheetCount: 1
});
initSpread(spread);
}
);
function initSpread(spread)
{
var sheet = spread.getSheet(0);
sheet.bind(GC.Spread.Sheets.Events.CellChanged, function (e, info) {
if(info.sheetArea === GC.Spread.Sheets.SheetArea.viewport){
//$("#status").text("Cell index (" + info.row + "," + info.col + ")");
alert("Cell index (" + info.row + "," + info.col + ")");
}
});
}
当单元格的值改变后,该事件会执行两次,求解,谢谢
|
|