js

parseFloat(钱数).toFixed(2)

钱数后小数点两位

例如:10.4  结果:10.40

         52    结果:52.00

posted @ 2015-09-11 17:22  z8251600  阅读(66)  评论(0编辑  收藏  举报