Google Apps脚本中的地图对象支持 [英] Map object support in Google Apps Script

查看:99
本文介绍了Google Apps脚本中的地图对象支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Apps脚本是否支持地图对象?



当我尝试使用它时,我得到:

  ReferenceError:地图未定义。 (第21行,代码文件)


解决方案

地图是在ES6中引入的。 Google Apps脚本大致对应于ES 5.1。它运行在犀牛上,它不那么活跃目前还不清楚谷歌是否会想要推出更新的Rhino发布版本。

Does Google Apps Script supports the Map object?

When I try to use it I get:

ReferenceError: "Map" is not defined. (line 21, file "Code")

解决方案

No. Map was introduced in ES6. Google Apps Script roughly corresponds to ES 5.1. It runs on Rhino, which is not so actively developed, and it's not clear if Google will ever want to pull in newer Rhino releases anyway.

这篇关于Google Apps脚本中的地图对象支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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