数字运算 String x parseFloat(x) //String 转化成 浮点数 toFixed(2) //保留两位小数 Jquery中可以把string中转换成int的 parseInt(str)