Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Google Apps 脚本将 Google 电子表格的内容作为 JSON 获取的简单方法是什么?
在 Google 电子表格中转到Tools > Scripts > Script Editor
Tools > Scripts > Script Editor
插入此代码并点击播放按钮
function getValues() { var range = SpreadsheetApp.getActiveSheet().getDataRange(); var json = Utilities.jsonStringify(range.getValues()) Browser.msgBox(json); }