JSVersion 编辑
The values of the JSVersion
enumerated type stand for particular versions of the JavaScript run-time. The functions JS_GetVersion
, JS_SetVersion
, JS_StringToVersion
, and JS_VersionToString
use these values.
Description
The JSVersion
enumerated type includes the following values. Each version has a name, which is a string used by JS_StringToVersion
and JS_VersionToString
.
Enumeration | Value | Meaning | Name |
---|---|---|---|
JSVERSION_1_0 Obsolete since JSAPI 24 | 100 | JavaScript 1.0 | "1.0" |
JSVERSION_1_1 Obsolete since JSAPI 24 | 110 | JavaScript 1.1 | "1.1" |
JSVERSION_1_2 Obsolete since JSAPI 24 | 120 | JavaScript 1.2 | "1.2" |
JSVERSION_1_3 Obsolete since JSAPI 24 | 130 | JavaScript 1.3 | "1.3" |
JSVERSION_1_4 Obsolete since JSAPI 24 | 140 | JavaScript 1.4 | "1.4" |
JSVERSION_ECMA_3 | 148 | ECMA 262 Edition 3 | "ECMAv3" |
JSVERSION_1_5 Obsolete since JSAPI 24 | 150 | JavaScript 1.5 | "1.5" |
JSVERSION_1_6 | 160 | JavaScript 1.6 | "1.6" |
JSVERSION_1_7 | 170 | JavaScript 1.7 | "1.7" |
JSVERSION_1_8 | 180 | JavaScript 1.8 | "1.8" |
JSVERSION_ECMA_5 | 185 | ECMA 262 Edition 5 | "ECMAv5" |
JSVERSION_DEFAULT | 0 | Latest JavaScript version, but omitting web-incompatible extensions | "default" |
JSVERSION_UNKNOWN | -1 | Unknown JavaScript version | NULL |
JSVERSION_LATEST | JSVERSION_ECMA_5 | Latest JavaScript version | NULL |
See Also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论