摘要: // 方法一 function toThousands(num) { var result = [ ], counter = 0; num = (num || 0).toString().split(''); for (var i = num.length - 1; i >= 0; i--) { c 阅读全文
posted @ 2017-12-07 14:02 xjt360 阅读(823) 评论(0) 推荐(0) 编辑
摘要: //转小写 function aNumber(num){ var numArray = new Array() var unit = "亿万元$" for (var i=0; i<unit.length; i++) { var re = eval_r("/"+ (numArray[i-1] ? un 阅读全文
posted @ 2017-12-07 13:59 xjt360 阅读(897) 评论(0) 推荐(0) 编辑