toFixed()函数只有数字类型的参数才可使用,字符串类型的参数需用 parseFloat或者parseInt转换后再使用 转载于:https://www.cnblogs.com/wlgh01/p/10194319.html