题解 | #分隔符#
分隔符
https://pre.nowcoder.com/practice/e5696992841841a8ab9d026324e4bb77
<html>
<head>
<meta charset=utf-8>
</head>
<body>
<script type="text/javascript">
function _comma(number) {
let str = number.toString();
return str.replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
}
</script>
</body>
</html>
