JS converts numbers into three-digit comma-separated styles (sample code)
Copy the code as follows: function formatNum(num){ if(!/^(/+|-)?(/d+)(/./d+)?$/.test(num)){alert("wrong!") ; return num;} var a = RegExp.$
2025-01-29