gpt4 book ai didi

javascript - ECMAScript 函数规范

转载 作者:行者123 更新时间:2023-11-29 14:56:34 24 4
gpt4 key购买 nike

(抱歉,如果在别处回答)

我正在阅读 ECMAScript 262 规范(ECMAScript 第五版),在4.3.24 on function它说了以下内容:

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 编写是什么意思吗?

提前致谢!

最佳答案

ECMAScript 是一种用于除 JavaScript 之外的其他语言的标准,例如 JScript(我认为仅在 Internet Explorer 中受支持?)或 ActionScript (Flash)。

这条语句意味着您可以简单地在函数中编写不同于 ECMAScript 中定义的其他语法。

关于javascript - ECMAScript 函数规范,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16877803/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com