javascript中等于(==)與全等(===)的區別說明_javascript技巧
來源:懂視網
責編:小采
時間:2020-11-27 20:58:05
javascript中等于(==)與全等(===)的區別說明_javascript技巧
javascript中等于(==)與全等(===)的區別說明_javascript技巧: var y = 5; if(y == 5){ document.write(== '5' True ); } else{ document.write(== '5' False ); } if(y == 5){ document.write(== 5 數字 is True ); } else{ document.write(== 5 數字 False ); } if( y === 5){ document.write(=== 數字5 is
導讀javascript中等于(==)與全等(===)的區別說明_javascript技巧: var y = 5; if(y == 5){ document.write(== '5' True ); } else{ document.write(== '5' False ); } if(y == 5){ document.write(== 5 數字 is True ); } else{ document.write(== 5 數字 False ); } if( y === 5){ document.write(=== 數字5 is
javascript中等于(==)與全等(===)的區別說明_javascript技巧
javascript中等于(==)與全等(===)的區別說明_javascript技巧: var y = 5; if(y == 5){ document.write(== '5' True ); } else{ document.write(== '5' False ); } if(y == 5){ document.write(== 5 數字 is True ); } else{ document.write(== 5 數字 False ); } if( y === 5){ document.write(=== 數字5 is