我正在编写一个在 Google Sheets 中使用的脚本,它返回一个数组数组,用于填充多列和行。
我有
var results = new Array(2);
var info = new Array(2);
info[0] = "some string";
info[1] = "other string";
results[0] = info;
results[1] = info;
return results;
Run Code Online (Sandbox Code Playgroud)
当第一列应该包含“某些字符串”时,第一列将为空白,而第二列包含“其他字符串”