i want number format 1000 to 1000 in jquery
You can achieve the desired number format using the toLocaleString() method in JavaScript/jQuery. Here's an example:
var number = 1000;
var formattedNumber = number.toLocaleString();
console.log(formattedNumber); // Output: 1,000
In this example, we use the toLocaleString() method to convert the number into a string with the desired format. The output will be "1,000" as requested.
原文地址: http://www.cveoy.top/t/topic/iy02 著作权归作者所有。请勿转载和采集!