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.
The GAS documentation is not complete now and many features are discoverable experimentally.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…