问题模块 框架类型 问题类型 终端类型 操作系统 微信版本 基础库版本
框架 微信小程序 需求 客户端 Android 6.6.6 2.0


渲染结果:

{{}}使用表达式会出错!

在wxml中使用wx:for循环后,由于浮点数问题,计算误差,这里使用toFixed(2)为报错,用什么办法可以解决?
微信小程序开发问题解答
微信小程序开发者回答:
尝试一下使用wxs?(https://developers.weixin.qq.com/miniprogram/dev/framework/view/wxs/)
本文网址:http://www.91bianli.com/weixinxiaochengxu/48428.html