在Javascript中对象节点input.value返回值为String,所以不能直接比较大小。应转成Int 或Float值进行比较。parseInt(str) 将Str转为整型。parseFloat(str) 将str转为 浮点。