toFixed() is not a function SageRen 2021-08-03 624 阅读1分钟 问题报错 toFixed()方法是把Number转换为指定小数位数的数字,只针对Number类型,其他字符类型需要用ParseFloat或者ParseInt进行转换后再使用 上述问题解决方法 参考文章: (36条消息) 使用toFixed()函数时,出现“toFixed() is not a function”的解决办法_tide_style_的博客-CSDN博客 (36条消息) 出现(.toFixed is not a function)原因及解决方法_下雨的时候取的名-CSDN博客