Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
如何限制小数位数?
乘以需要保留的位数的10的指数次倍数,取整,然后再除回去试试,例如保留两位小数,假设该变量叫V,则填 int(V*100)/100
哦,原来还可以这样啊
大佬666 谢谢!!