首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

javascript 权威指南 学习札记3:Equality (==) and Identity (===)

2012-11-23 
javascript 权威指南 学习笔记3:Equality () and Identity () operator is known as the equality

javascript 权威指南 学习笔记3:Equality (==) and Identity (===)

== operator is known as the equality operator; it checks whether its two operands are "equal" using a more relaxed definition of sameness that allows type conversions.

=, "is equal to" for ==, and "is identical to" for ===.

!== stands for "not identical to." See the previous section for details on how equality and identity are defined for different data types.

热点排行
Bad Request.