spreadjs版本升级之后,无法清除浮动对象。
GC.Spread.Sheets.FloatingObjects.remove(name);
GC.Spread.Sheets.FloatingObjects.floatingObject.clear();
下面是具体的代码
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("spreadDiv"),{});
spread.fromJSON(JSON.parse(jsonStr));
spread.getActiveSheet().floatingObjects.remove(‘f1’);
|
|