Google Script PropertiesService在哪里存储数据? [英] Where does Google Script PropertiesService store data?

查看:192
本文介绍了Google Script PropertiesService在哪里存储数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Script的PropertiesService存储用户属性数据到底在哪里?例如,如果我想要清除用户属性而不必运行带有deleteAllProperties()方法?用另一种方式来描述它,有没有办法从本地浏览器或操作系统访问Google Script属性?



从Form.html

 < input onclick =google.script.run.setProperties(this.parentNode.parentNode); type =submitvalue =保存> 

来自Code.gs

 函数setProperties(form){
var filledForm = PropertiesService.getUserProperties()。setProperty(FORM,form);
}


解决方案

Google回答说:存储在服务器上,并且无法在本地删除它们,因为它们在本地不存在,因为它们在堆栈溢出时被询问。



这足以回答我的问题。感谢Garrett为了获取这些信息而努力不懈地寻找Google开发人员。


Where exactly does the Google Script PropertiesService store user property data?

For example, what if I want to clear the user properties without having to run a function with the deleteAllProperties() method? To phrase it yet another way, is there a way to access Google Script properties from the local browser or OS?

From Form.html

<input onclick="google.script.run.setProperties(this.parentNode.parentNode);" type="submit" value="Save" >

From Code.gs

function setProperties(form) {
  var filledForm = PropertiesService.getUserProperties().setProperty("FORM", form);
}

解决方案

Google replied, "Properties are stored on the server, and there's no way to delete them locally as you asked on stack overflow since they don't exist locally."

That adequately answers my question. Thanks to Garrett for going above and beyond to ping Google devs to get this information.

这篇关于Google Script PropertiesService在哪里存储数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆