摘要:
/** * 数字格式转换成千分位 *@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 阅读全文