数字格式化,适用于价钱,每三位用逗号隔开

745 阅读1分钟

一、如果price是String,需要转成number类型

二、如果price是字符串且前面有¥符号,则可以做如下处理

image.png

image.png