摘要: function fmoney(s, n) {--s 表示 需要转换的金额--n 表示 保留几位小数 n = n > 0 && n <= 20 ? n : 2; s = parseFloat((s + "").replace(/[^\d\.-]/g, "")).toFixed(n) ... 阅读全文
posted @ 2015-07-16 15:31 向往田园 阅读(850) 评论(0) 推荐(0) 编辑