[英]How can I parse a Google sheet using getJSON (or other way)?
I've a stupid question.我有一个愚蠢的问题。 Here're two links:
这里有两个链接:
https://docs.google.com/spreadsheets/d/1D1vL8EI0uRzeiGM-A8hZLgUCexXrocw5B_qTGnCekNE/pubhtml
And和
https://spreadsheets.google.com/feeds/list/1D1vL8EI0uRzeiGM-A8hZLgUCexXrocw5B_qTGnCekNE/od6/public/basic?alt=json
When I open the first link in a browser, I can see a table itself, and when I open the second link, I can see some data in JSON.当我在浏览器中打开第一个链接时,我可以看到一个表格本身,当我打开第二个链接时,我可以看到 JSON 中的一些数据。 What is the general rule of such a link conversion?
这种链接转换的一般规则是什么? Here are another link for example:
这是另一个链接,例如:
https://docs.google.com/spreadsheets/d/e/2PACX-1vS6D5wKWv4IfazLPFrphtG9lL4p4s4Zysmc40kGD22yqsaVhQXLef7M30DbwGT_MpNKHi5dplcQtB3d/pubhtml
How should I transform the link to get JSON?我应该如何转换链接以获得 JSON? I'm going to use jQuery function
getJSON
to get the contents of a Google sheet.我将使用 jQuery function
getJSON
来获取 Google 表格的内容。 But what a URL should I give to the function?但是我应该给 function 一个 URL 什么? And are there any other ways to access the contents of a table using JS?
还有其他方法可以使用 JS 访问表格的内容吗?
Excuse me for my english!对不起我的英语!
You should try google sheet api for working with sheet您应该尝试使用 Google 表格 api 来使用表格
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.