无法从Google表格中提取数据(之前曾工作过)

时间:2019-04-30 14:53:58

标签: html google-sheets

这一直持续到今天。我正在使用HTML将给定工作表中的特定值提取为一些HTML代码,但是从今天早上开始,我会收到内部服务器错误:

几个月来代码没有任何变化 它一直没有问题

特定错误是在脚本中调用“ https://spreadsheets.google.com/feeds/cells/1isyDX2FAmr1EinG5YLCjE4Q2subFrN0uZyz7xx49JGU/default/public/basic?alt=json-in-script&callback=onDataLoaded

</script>

<script src="https://spreadsheets.google.com/feeds/cells/1isyDX2FAmr1EinG5YLCjE4Q2subFrN0uZyz7xx49JGU/default/public/basic?alt=json-in-script&callback=onDataLoaded"></script>

<script type="text/javascript">
var onDataLoaded = (data) => {

var AdvisoryTime = data.feed.entry.find((entry) => entry.title.$t == 'B3').content.$t
document.getElementById('data').innerHTML = AdvisoryTime;
var AdvisoryPercent = data.feed.entry.find((entry) => entry.title.$t == 'B2').content.$t
document.getElementById('data2').innerHTML = AdvisoryPercent;
var AssessmentTime = data.feed.entry.find((entry) => entry.title.$t == 'B4').content.$t
document.getElementById('data3').innerHTML = AssessmentTime;
var AssessmentPercent = data.feed.entry.find((entry) => entry.title.$t == 'B5').content.$t
document.getElementById('data4').innerHTML = AssessmentPercent;
</script>

0 个答案:

没有答案