Google表+ Web应用程序搜索特定列并返回所有匹配行



有人知道我如何修改下面的代码,只从谷歌表中的特定列搜索,例如列J?

下面的代码工作得很好,返回与搜索文本匹配的整个行,但是搜索是在google工作表的整个范围内进行的。https://www.bpwebs.com/create-web-forms-to-get-data-from-google-sheets/comment-page-1/评论

const colIndex = 9; // Column J
data.forEach(function(f) {
if (f[colIndex] == searchtext) {
ar.push(f);
}
});

最新更新