html52.com
我爱小程序-开发者交流社区

字符串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

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付