当我试图使用nodejs在npm googlespreadsheet中的getCells函数下使用min_row,max_row,return_empty等可选数据时我没有成功这样做。任何人都说我在getCells函数下使用选项的语法
这是我试过的片段
my_sheet.getCells(1,{minRows: 2,maxRows:3,returnEmpty:true},function(err,data) { console.log(data.length); // console.log(data); });而且我需要读取中间组之间的空单元格,同时使用nodejs访问googlespreadsheet。这有什么办法吗?我想要一种使用nodejs的方法。
when i was trying to use optional data like min_row,max_row,return_empty under getCells function in npm googlespreadsheet using nodejs.I am not successful doing so.can anyone say me the syntax for using options under getCells function
This is the snippet i tried
my_sheet.getCells(1,{minRows: 2,maxRows:3,returnEmpty:true},function(err,data) { console.log(data.length); // console.log(data); });and also i need to read the empty cells inbetween group of cells while accessing googlespreadsheet using nodejs.Is there any way for it???I want a way for it using nodejs.
最满意答案
文件
my_sheet.getCells(1, { 'min-row': 2, 'min-row': 3, 'return-empty': true }, function(err, data) { console.log(data.length); });GoogleSpreadsheet.getCells(worksheet_id,options,callback)
获取一组单元格对象。
worksheet_id - 要添加到的工作表的索引(索引从1开始) 选项(可选) min-row - 行范围min(使用左侧可见的#s) max-row - 行范围max min-col - 列范围min(使用数字,而不是字母!) max-col - 最大列范围 return-empty - 包含空单元格(布尔值)
Docs
my_sheet.getCells(1, { 'min-row': 2, 'min-row': 3, 'return-empty': true }, function(err, data) { console.log(data.length); });GoogleSpreadsheet.getCells(worksheet_id, options, callback)
Get an array of cell objects.
worksheet_id - the index of the sheet to add to (index starts at 1) options (optional) min-row - row range min (uses #s visible on the left) max-row - row range max min-col - column range min (uses numbers, not letters!) max-col - column range max return-empty - include empty cells (boolean)
更多推荐
发布评论