javascript - Google Sheets API 适用于一张纸,但不适用于另一张
问题描述
以下代码有效:
let sheet = "c750833d5021f60a1b9cc9bf0a21bb9dc74cff12"
let range = "Sheet1"
let apiKey = "6e0ece719a48d1337e69bd881b4324aa957e4407"
let url = `https://sheets.googleapis.com/v4/spreadsheets/${sheet}/values/${range}?key=${apiKey}`
fetch(url)
.then(res => res.json())
.then(data => {
console.log(data)
})
.catch(err => err);
但是,对于另一张纸,代码在执行时什么也不做。可能是什么问题?
两张表都有链接共享。
解决方案
推荐阅读
- javascript - 确保函数仅在 componentDidMount 或 componentDidUpdate 中调用一次
- go - /bin/sh: 1: go: 推送到heroku时找不到
- entity-framework - Entity Framework 6 加载实体的派生类
- c++ - 如何在 Visual Studio 和 C++ 中使用 emxArray_cell_wrap_0?
- angular - 将子级数据绑定到父级以显示模式弹出窗口
- java - 我的欧拉方法实现是否正确?
- r - 如何让 x 轴跨度与 gganimate 动画一起移动?
- python - 有没有办法使用 SKlearn 获得滑动嵌套交叉验证?
- android - RecyclerView 中延迟加载子项的 RecyclerView 可访问性遍历
- python - 在列表项上使用正则表达式来替换整个单词