在js里面比较大小必须先转换成number

利用js里面的Number函数从对象转换成数值

原文地址:https://www.cnblogs.com/yangzailu/p/6805379.html