close


識別運算子:===!==

英文 : These operators behave the same as the equality operators, except that no type conversion is done.

中文 : 這些運算子的行為方式和等號比較運算子相同,但是有一點例外,就是不會進行型別轉換。 如果兩個運算式的型別不同,這些運算式一定會傳回 false

 

等號比較運算子:==

英文 : If the types of the two expressions are different, attempt to convert them to a String, Number, or Boolean.

中文 :如果兩個運算式的型別不同,則會嘗試將它們轉換為字串、數字或布林值。 

arrow
arrow

    Kenneth 發表在 痞客邦 留言(0) 人氣()