简体   繁体   English

三等号是在哪一年引入 javascript 的?

[英]In which year was the triple equals sign introduced to javascript?

In which year was the triple equals sign introduced to JavaScript?三等号是在哪一年引入 JavaScript 的?

Bonus points for奖励积分

==

===

Object.is

and any equality checks that I am missing.以及我缺少的任何平等检查。

According to the ECMA Standards, as found on: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators#Specifications根据 ECMA 标准,见: https : //developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators#Specifications


Object.is - June 2015 Object.is - 2015 年 6 月

Object.is was introduced in Standard ECMA-262 6th Edition / June 2015 Object.is 是在 标准 ECMA-262 第 6 版 / 2015 年 6 月中引入的


=== - December 1999 === - 1999 年 12 月

=== was introduced in the 3rd edition of ECMAScript, aka JavaScript 1.3 . ===是在 ECMAScript 的第 3 版,即JavaScript 1.3引入的。

ECMAScript 3rd Edition (ECMA-262) Standard

Adds === and !== operators.添加 === 和 !== 运算符。

Implemented in JavaScript 1.3 which is dated December 1999 on Standard ECMA-262 3rd Edition在 JavaScript 1.3 中实现,JavaScript 1.3于 199912 月标准 ECMA-262 第 3 版上实现


== - June 1997 == - 1997 年 6 月

I suspect == predates ECMAScript standards, but the closest standard i can find is我怀疑==早于 ECMAScript 标准,但我能找到的最接近的标准是

Standard ECMA-262 June 1997 aka JavaScript 1.0 标准 ECMA-262 1997 年 6 月,又名JavaScript 1.0

However, this is merely the date they were standardized, if they existed pre-standardization, the dates may be incorrect.然而,这仅仅是它们被标准化的日期,如果它们存在预标准化,则日期可能是不正确的。

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

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