我想调用我在Google Apps脚本中编写的自定义函数.当我执行getJSON时,我想它会自动运行我的doGet(e).
我的Javascript:
$.getJSON(https://script.google.com/macros/s/[ID]/exec, function(data){
//code here
});
Run Code Online (Sandbox Code Playgroud)
例如,有没有办法调用我的自定义函数
我的Google Apps脚本:
function getNumberOfFans(e){
//code here
}
Run Code Online (Sandbox Code Playgroud)
我是否必须在URL中添加某种额外的功能参数?