摘要: /** * 数字格式转换成千分位 *@param{Object}num */function commafy(num){ if((num+"").Trim()==""){ return""; } if(isNaN(num)){ return""; } num = num+""; if(/^.*\..*$/.test(num)){ varpointIndex =num.lastIndexOf("."); varintPart = num.substring(0,pointInd 阅读全文
posted @ 2012-12-11 15:04 叮/当 阅读(12351) 评论(1) 推荐(0) 编辑