是否可以在不使用JavaScript的情况下获取此URL中的“ $ t”值?
我想在浏览器中看到的是:12-Jan-2019
不是这个:
{
"version":"1.0",
"encoding":"UTF-8",
"entry":{
"xmlns":"http://www.w3.org/2005/Atom",
"xmlns$batch":"http://schemas.google.com/gdata/batch",
"xmlns$gs":"http://schemas.google.com/spreadsheets/2006",
"id":{
"$t":"https://spreadsheets.google.com/feeds/cells/1m8fyL5Nynv1Q171qyzh450_WjJGp35f9T5OYGfCQwr8/default/public/basic/R2C1"
},
"updated":{
"$t":"2019-01-17T01:51:01.318Z"
},
"category":[
{
"scheme":"http://schemas.google.com/spreadsheets/2006",
"term":"http://schemas.google.com/spreadsheets/2006#cell"
}
],
"title":{
"type":"text",
"$t":"A2"
},
"content":{
"type":"text",
"$t":"12-Jan-2019"
},
"link":[
{
"rel":"self",
"type":"application/atom+xml",
"href":"https://spreadsheets.google.com/feeds/cells/1m8fyL5Nynv1Q171qyzh450_WjJGp35f9T5OYGfCQwr8/default/public/basic/R2C1"
}
]
}
}
答案 0 :(得分:0)
12-Jan-2019
电子表格中检索https://spreadsheets.google.com/feeds/cells/1m8fyL5Nynv1Q171qyzh450_WjJGp35f9T5OYGfCQwr8/default/public/basic/R2C1?alt=json
如果我的理解是正确的,那么这些端点呢?
1m8fyL5Nynv1Q171qyzh450_WjJGp35f9T5OYGfCQwr8
https://docs.google.com/spreadsheets/d/1m8fyL5Nynv1Q171qyzh450_WjJGp35f9T5OYGfCQwr8/pubhtml/sheet?gid=0&range=A2
结果
12-Jan-2019
显示在浏览器中。
https://docs.google.com/spreadsheets/d/1m8fyL5Nynv1Q171qyzh450_WjJGp35f9T5OYGfCQwr8/gviz/tq?gid=0&tqx=out:csv&range=A2
结果:
已创建一个包含"12-Jan-2019"
的CSV文件。
如果我误解了你的问题,对不起。
这个怎么样?在此修改中,使用了<object>
和端点1。
<object data="https://docs.google.com/spreadsheets/d/1m8fyL5Nynv1Q171qyzh450_WjJGp35f9T5OYGfCQwr8/pubhtml/sheet?gid=0&range=A2" width="115" height="20">This cannot be displayed.</object>