let iframeWindow = document.querySelector("[fgcname='spreadFill'] iframe").contentWindow;
let spread = iframeWindow.GC.Spread.Sheets.findControl("designer-container");
感谢回复!
我现在主要的问题是不知道如何获取spread
let iframeWindow = $("[fgcname='iframe']").find("iframe")[0].contentWindow;
let spread = new GC.Spread.Sheets.Workbook(iframeWindow.document.getElementById('ss'));
我尝试用这种方式,但是这似乎是新建而不是获取,也尝试了getWorkbook可能是我方法不对反正无法获取到现有的设计器工作簿实例