且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Google Apps脚本中的地图对象支持

更新时间:2023-12-04 21:19:28

地图是在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.