可以用Jquery或JavaScript代码转换我的PHP代码吗?

{{number_format(floor($item[0]->price), 0, '.', ' ')}}
<sup class="price_dec">
     ,{{str_replace("0.","",(string)number_format(round($item[0]->price - (int)$item[0]->price,2),2))}}
</sup

How to transform PHP code in Jquery?

<span style='font-size:25px'>180</span>,90 $ <br>
<span style='font-size:25px'>1 100</span>,90 $ <br>
<span style='font-size:25px'>100 000</span>,90 $ <br>
<span style='font-size:25px'>1 000 000</span>,90 $ <br>

</div>

Maybe this code snipped can be a solution
I have used numbers with decimals just to show how function rounding numbers

<html>
  <head>
    <script>
        // this is document ready
        document.addEventListener("DOMContentLoaded", function(){
            
            // Because number_format does not exist, you must create a function
            Number.prototype.number_format = function(n, s, c, x)
            {
                /**
                * Number.prototype.format(n, s, c, x)
                * 
                * @param integer n: length of decimal
                * @param mixed s: sections delimiter
                * @param mixed c: decimal delimiter
                * @param integer x: length of whole part
                */
                // Defaults
                s = s || ".";
                c = c || ",";

                var re = '\\d(?=(\\d{' + (x || 3) + '})+' + (n > 0 ? '\\D' : '$') + ')',
                num = this.toFixed(Math.max(0, ~~n));

                return (c ? num.replace('.', c) : num).replace(new RegExp(re, 'g'), '$&' + (s || ','));
            };

            // Let assume that you have an array of numbers
            var prices = [180.912, 1100.954, 100000.955, 1000000.956];
            var string = "";
            var match = [];
            var pattern = /,[0-9]{2}\s\$/g
            var regex = new RegExp(pattern);
            var element = document.getElementsByTagName("body")[0];
            
            for(i in prices) {
                string = "<div>"+ prices[i].number_format(2, " ", ",", 3) +" $<div>";
                match = string.match(regex)
                string = string.replace(match[0], "<small>"+ match[0] +"<small>")
                element.innerHTML += string;
            }
        });
    </script>
  </head>
  <body>
  </body>
</html>

</div>