javascript中等于(==)與全等(===)的區(qū)別說(shuō)明_javascript技巧
來(lái)源:懂視網(wǎng)
責(zé)編:小采
時(shí)間:2020-11-27 20:58:05
javascript中等于(==)與全等(===)的區(qū)別說(shuō)明_javascript技巧
javascript中等于(==)與全等(===)的區(qū)別說(shuō)明_javascript技巧: var y = 5; if(y == 5){ document.write(== '5' True ); } else{ document.write(== '5' False ); } if(y == 5){ document.write(== 5 數(shù)字 is True ); } else{ document.write(== 5 數(shù)字 False ); } if( y === 5){ document.write(=== 數(shù)字5 is
導(dǎo)讀javascript中等于(==)與全等(===)的區(qū)別說(shuō)明_javascript技巧: var y = 5; if(y == 5){ document.write(== '5' True ); } else{ document.write(== '5' False ); } if(y == 5){ document.write(== 5 數(shù)字 is True ); } else{ document.write(== 5 數(shù)字 False ); } if( y === 5){ document.write(=== 數(shù)字5 is
javascript中等于(==)與全等(===)的區(qū)別說(shuō)明_javascript技巧
javascript中等于(==)與全等(===)的區(qū)別說(shuō)明_javascript技巧: var y = 5; if(y == 5){ document.write(== '5' True ); } else{ document.write(== '5' False ); } if(y == 5){ document.write(== 5 數(shù)字 is True ); } else{ document.write(== 5 數(shù)字 False ); } if( y === 5){ document.write(=== 數(shù)字5 is