0
進入下面的代碼註釋的代碼運行良好,但同樣insertTable被給了一個錯誤服務不可用:文檔谷歌Apps腳本 - 如何插入表格到現有的TableCell
function createTbl(){
var body = DocumentApp.getActiveDocument().getBody();
// Create a two-dimensional array containing the cell contents.
var cells = [
['Row 1, Cell 1', 'Row 1, Cell 2'],
['Row 2, Cell 1', 'Row 2, Cell 2']
];
var tbl = body.appendTable(cells);
var row = tbl.getChild(0);
var cell = row.getChild(0);
//cell.insertParagraph(0,'Hello Wrold!'));
cell.insertTable(0,cells)
}