js取两位小数点

var money = one.money;
var tmoney = money.substr(0,money.indexOf(".")+3);

posted @ 2017-11-11 11:10  Monroe_Yu  阅读(220)  评论(0编辑  收藏  举报