问题描述
我第一次使用 esp32 cam,我想单击图像并将它们存储在我的谷歌驱动器中。但是,当我运行此代码时,我总是收到错误 1)TypeError:无法读取未定义的属性“参数” 2)找不到脚本函数:doGet(部署后) 部署我做了以下步骤: a) 网络应用程序 b) 像我一样执行 c) 对所有人的访问
ValueError: Length of values does not match length of index
解决方法
运行 rundoPost() 函数。它运行 doPost(e) 函数并向它提供一个被 e 卡住的对象。
function doPost(e) {
Logger.log(JSON.stringify(e));
if(e.parameter.one == 1) {
Logger.log('Go Click the Message Box to complete the function')
Browser.msgBox('Hello World');
}
}
function rundoPost() {
let eObj={parameter:{one:1,two:2,three:3}};
doPost(eObj);
}
您需要确保您提供的对象与触发器将提供的对象完全相同,以便您的代码可以作为真正的网络应用端点工作。