标签:ace turn bsp cti while image 问题 style return
//js数字千分符处理 function commafy(num) { num = num + ""; var re = /(-?\d+)(\d{3})/ while (re.test(num)) { num = num.replace(re, "$1,$2") } return num; }
执行下,效果不错,收藏记录
标签:ace turn bsp cti while image 问题 style return
原文地址:http://www.cnblogs.com/jshare/p/6817270.html