【发布时间】:2013-08-02 16:03:18
【问题描述】:
有没有人尝试在 Google 电子表格中编写脚本来对网站进行 ajax 调用?
我想让电子表格从网站上自行更新。但是在放了这么短的代码之后,我得到了一个错误:
"ReferenceError: "XMLHttpRequest" 未定义。"
有什么想法吗?我必须调用某个库吗?
xmlhttp=new XMLHttpRequest();
xmlhttp.open("GET", eventObject[1], true);
xmlhttp.send();
【问题讨论】:
标签: javascript ajax google-apps-script google-sheets google-sheets-api