function commafy(num) { return num.toString().indexOf(".") !== -1 ? num.toLocaleString() : num.toString().replace(/(\d)(?=(?:\d{3})+$)/g, "$1,"); }
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8