Adding comma as thousands separator (javascript) - output being deleted instead

前端 未结 5 999
你的背包
你的背包 2021-01-02 09:55

I am attempting to dynamically adjust a numerical value entered to include thousand separators

Here is my code:

function addCommas(nStr) {
    nStr +         


        
5条回答
提交回复
热议问题