🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
接口格式化 ~~~ use VIEW\ServiceOps\SpareParts\Service\VanStockService; use VIEW\ServiceOps\SpareParts\Service\InterfaceCommonService; $vanStockService = new VanStockService(); $qty = $vanStockService->isShowDecimal(数量); $interfaceCommonService = new InterfaceCommonService(); number_locale_format($qty,$interfaceCommonService->getDecimalsQuantitySwitch()) ~~~ 金额格式化--前端 ``` onfocus="monetary_onfocus(this)" onblur="monetary_onblur(this)" ``` 数量格式化 ``` onfocus="number_onfocus(this)" onblur="number_onblur(this)" ```