某处是否有 Google App Script Syntax 的完整定义? [英] Is there a complete definition of the Google App Script Syntax somewhere?

查看:25
本文介绍了某处是否有 Google App Script Syntax 的完整定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发者页面上找不到完整的语法规范.我真的想知道是否有一个扩展的 for 循环......

I can't find a complete syntax spec on the developer pages. I'm really wondering if there's an extended for loop ...

https://developers.google.com/apps-script/

我看到了默认服务,但这并没有定义我们可以使用的控制流语法.是不是 JavaScript 的某个版本?

I see the Default services, but that isn't defining what control flow syntax we can use. Is it precisely some version of JavaScript?

推荐答案

GAS 不是 JavaScript 的精确版本.它支持 JavaScript 1.8.5 的许多特性,如 Object.keysObject.isExtensible 等,但另一方面它不支持关键字 yieldlet 在 JavaScript 1.7 中引入.GAS 支持的另一个特性是 JavaScript 1.8.1 中引入的原生 JSON 类和 String.trim 函数.GAS 还支持 E4X 扩展.

The GAS is not a precise version of JavaScript. It supports many features of JavaScript 1.8.5 like Object.keys, Object.isExtensible, etc. but on the other hand it does not support the keywords yield and let introduced in JavaScript 1.7. Another features which the GAS supports are the native JSON class and String.trim function introduced in JavaScript 1.8.1. Also the GAS supports the E4X extension.

GAS 文档现在不完整,许多功能可以通过实验发现.

The GAS documentation is not complete now and many features are discoverable experimentally.

这篇关于某处是否有 Google App Script Syntax 的完整定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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