Google Apps Script Javascript 标准支持 [英] Google Apps Script Javascript Standard Support

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

问题描述

简单的问题:任何人都可以指向资源或知道 Google Apps Script 支持哪种 Javascript 标准?

Simple question: Can anyone point to a resource or knows anything about which standard of Javascript is supported in Google Apps Script?

我自然地认为 ES5 是完全支持的,但是 ES6(甚至 7)呢?

I assume naturally that ES5 is fully supported, but what about ES6 (and even 7)?

注意:我的意思是内置的代码编辑器,如果你打开一个电子表格(例如),它就会出现,然后点击Tools >脚本编辑器...

Note: I mean the built-in code editor, which will appear if you open a Spreadsheet (for example), and click Tools > Script editor...

推荐答案

根据到文档 Apps 脚本基于 JavaScript 1.6.

According to the docs Apps Script is based on JavaScript 1.6.

此表解释了与 ES 标准的相关性.

This table explains the correlation to the ES standards.

这篇关于Google Apps Script Javascript 标准支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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