![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错
sun温柔啊
这个作者很懒,什么都没留下…
展开
-
2021-09-01微信小程序【报错】TypeError: Cannot read property ‘$$‘ of undefined
【报错】TypeError: Cannot read property ‘$$‘ of undefined使用微信小程序开发者工具的时候,出现这样的报错,发现是因为使用swiper组件时候,swiper的current属性没有重置 将其重置为0即可原创 2021-09-01 15:44:11 · 1029 阅读 · 0 评论 -
【报错】TypeError: value.toFixed is not a function
【报错】TypeError: value.toFixed is not a function首先toFixed 只对数字类型有用,所以对于字符类型的要用parseFloat / parseInt函数 / Number / + /先转换一下数据类型,再使用方法特别要注意:比如value接收的是这样的结果,数据中有字符串,使用 + 号:会报错使用Number:结果会是NAN,因为Number遇到无法编译的内容,就会返回NAN使用parseFloat / parseInt函数:会得到去除汉字的结原创 2021-08-11 15:49:01 · 2777 阅读 · 0 评论