I used the toLocaleString() method to enter a comma in `javascript. But the problem is that the IE browser and chrome work correctly, with the exception of the Safari browser. I delete the cache several times, but it still doesnβt work. You can help?;)
var test = 12300; console.log('test:'+test.toLocaleString()); // 12,300 in IE,Chrome // 12300 in Safari
source share