简体   繁体   English

ECMAScript函数规范

[英]ECMAScript function specification

(Sorry if it is answered elsewhere) (对不起,如果在其他地方回答)

I was reading ECMAScript 262 Specification (ECMAScript 5th Edition), and in 4.3.24 on function it says the following: 我正在阅读ECMAScript 262规范(ECMAScript第5版),并在4.3.24中的功能上说明如下:

NOTE: In addition to its named properties, a function contains executable code and state that determine how it behaves when invoked. 注意:除了命名属性之外,函数还包含可执行代码和状态,用于确定调用时的行为方式。 A functions code may or may not be written in ECMAScript . 函数代码可能会也可能不会写入ECMAScript中

Can someone point out or explain what does it mean that function can be written not in ECMAScript? 有人可以指出或解释在ECMAScript中不能编写函数是什么意思?

Thanks a lot in advance! 非常感谢提前!

ECMAScript is a standard that is used in other languages aside from JavaScript such as JScript (Only supported in Internet Explorer, I think?) or ActionScript (Flash). ECMAScript是除了JavaScript之外的其他语言使用的标准,例如JScript(我认为仅在Internet Explorer中支持?)或ActionScript(Flash)。

This statement means you can simply write other syntax in a function other than what is defined in ECMAScript. 此语句意味着您可以简单地在ECMAScript中定义的函数中编写其他语法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM