round value to 2 decimals javascript

前端 未结 2 1146
面向向阳花
面向向阳花 2020-12-30 02:14

I have a small issue with the final value, i need to round to 2 decimals.

var pri=\'#price\'+$(this).attr(\'id\').substr(len-2);
            $.get(\"sale/pri         


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