摘要: /* * formatMoney(s,type) * 功能:金额按千位逗号分割 * 参数:s,需要格式化的金额数值. * 参数:type,判断格式化后的金额是否需要小数位. * 返回:返回格式化后的数值字符串. */function formatMoney(s,type) { if (/[^0-9\.]/.test(s)) return "0"; if (s == null || s == "")... 阅读全文
posted @ 2010-05-06 21:38 Bug从零开始 阅读(224) 评论(0) 推荐(0) 编辑