var a = 100;var b = 100.00;var c = a===b ? "a恒等于b" : "a不恒等于b";var d = a==b ? "a等于b" : "a不等于b";document.write(a+"<br/>");document.write(b+"<br/>");document.write(c+"<br/>");document.write(d+"<br/>");//outputs:100100a恒等于ba等于b这说明在javascript中整型100和浮点型100.00是相等的并且还是恒等的。输出时都是100.