字符串float类型值比较
console.log("12.30>9.20 is " + ("12.30" > "9.0"));
console.log("34.30>14.30 is " + ("34.30" > "14.30"));
打印结果:
12.30>9.20 is false
34.30>14.30 is true
console.log("12.30>9.20 is " + ("12.30" > "9.0"));
console.log("34.30>14.30 is " + ("34.30" > "14.30"));
打印结果:
12.30>9.20 is false
34.30>14.30 is true