toFixed() is not a function

xiaoxiao2021-02-28  103

toFixed只能针对数字类型才能使用,所以对于字符类型的要用parseFloat或者parseInt函数先转一下再调用
转载请注明原文地址: https://www.6miu.com/read-37266.html

最新回复(0)